https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107683
Bug ID: 107683 Summary: [13 Regression] ICE in int_fits_type_p, at tree.cc:8044 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Started between 20221023 and 20221030 : (gcc configured with --enable-checking=yes) $ cat z1.c enum e : int enum e { E }; $ gcc-13-20221106 -c z1.c z1.c:2:6: error: 'enum' declared with but defined without fixed underlying type 2 | enum e { E }; | ^ z1.c:2:10: internal compiler error: Segmentation fault 2 | enum e { E }; | ^ 0xeeafcf crash_signal ../../gcc/toplev.cc:314 0x1246f30 int_fits_type_p(tree_node const*, tree_node const*) ../../gcc/tree.cc:8044 0x7c4d8b build_enumerator(unsigned int, unsigned int, c_enum_contents*, tree_node*, tree_node*) ../../gcc/c/c-decl.cc:9786 0x82c01f c_parser_enum_specifier ../../gcc/c/c-parser.cc:3469 0x82c01f c_parser_declspecs(c_parser*, c_declspecs*, bool, bool, bool, bool, bool, bool, bool, c_lookahead_kind) ../../gcc/c/c-parser.cc:3150 0x82cc91 c_parser_enum_specifier ../../gcc/c/c-parser.cc:3367 0x82cc91 c_parser_declspecs(c_parser*, c_declspecs*, bool, bool, bool, bool, bool, bool, bool, c_lookahead_kind) ../../gcc/c/c-parser.cc:3150 0x850305 c_parser_declaration_or_fndef ../../gcc/c/c-parser.cc:2091 0x85cf8f c_parser_external_declaration ../../gcc/c/c-parser.cc:1833 0x85d8bd c_parser_translation_unit ../../gcc/c/c-parser.cc:1695 0x85d8bd c_parse_file() ../../gcc/c/c-parser.cc:24359 0x8da031 c_common_parse_file() ../../gcc/c-family/c-opts.cc:1244