https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113740

            Bug ID: 113740
           Summary: ICE: in build_bitint_type, at tree.cc:7178 with
                    _BitInt() as bitfeld
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Created attachment 57307
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57307&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc testcase.c 
testcase.c:3:1: internal compiler error: in build_bitint_type, at tree.cc:7178
    3 | };
      | ^
0x89961c build_bitint_type(unsigned long, int)
        /repo/gcc-trunk/gcc/tree.cc:7178
0xe0e96b finish_struct(unsigned int, tree_node*, tree_node*, tree_node*,
c_struct_parse_info*, tree_node**)
        /repo/gcc-trunk/gcc/c/c-decl.cc:9560
0xe69d7d c_parser_struct_or_union_specifier
        /repo/gcc-trunk/gcc/c/c-parser.cc:4090
0xe69d7d c_parser_declspecs(c_parser*, c_declspecs*, bool, bool, bool, bool,
bool, bool, bool, c_lookahead_kind)
        /repo/gcc-trunk/gcc/c/c-parser.cc:3494
0xe792ec c_parser_declaration_or_fndef
        /repo/gcc-trunk/gcc/c/c-parser.cc:2306
0xe854bb c_parser_external_declaration
        /repo/gcc-trunk/gcc/c/c-parser.cc:2046
0xe85ea5 c_parser_translation_unit
        /repo/gcc-trunk/gcc/c/c-parser.cc:1900
0xe85ea5 c_parse_file()
        /repo/gcc-trunk/gcc/c/c-parser.cc:26815
0xefd681 c_common_parse_file()
        /repo/gcc-trunk/gcc/c-family/c-opts.cc:1306
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-8771-20240203001826-g4b7d4d8a4af-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r14-8771-20240203001826-g4b7d4d8a4af-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240203 (experimental) (GCC)

Reply via email to