]> git.ipfire.org Git - thirdparty/gcc.git/commit
expr: Handle BITINT_TYPE in count_type_elements [PR112881]
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Dec 2023 08:47:16 +0000 (09:47 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 7 Dec 2023 08:47:16 +0000 (09:47 +0100)
commite5489faf8efa30d8548bb669c0a700c409068bce
tree5a53a9504eff475997caa70512b408bb10fbbdd8
parentf74939bd539c87f669e35042f7bc7aa47f0c29eb
expr: Handle BITINT_TYPE in count_type_elements [PR112881]

The following testcaser ICEs during gimplification, because
count_type_elements doesn't handle BITINT_TYPE.  It should handle it like
other integral types.

2023-12-07  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/112881
* expr.cc (count_type_elements): Handle BITINT_TYPE like INTEGER_TYPE.

* gcc.dg/bitint-50.c: New test.
gcc/expr.cc
gcc/testsuite/gcc.dg/bitint-50.c [new file with mode: 0644]