public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/107683] New: [13 Regression] ICE in int_fits_type_p, at tree.cc:8044
@ 2022-11-14 17:32 gscfq@t-online.de
  2022-11-14 19:34 ` [Bug c/107683] " mpolacek at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gscfq@t-online.de @ 2022-11-14 17:32 UTC (permalink / raw)
  To: gcc-bugs

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: gscfq@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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-03-23 21:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-14 17:32 [Bug c/107683] New: [13 Regression] ICE in int_fits_type_p, at tree.cc:8044 gscfq@t-online.de
2022-11-14 19:34 ` [Bug c/107683] " mpolacek at gcc dot gnu.org
2022-11-16 12:43 ` rguenth at gcc dot gnu.org
2023-04-26  6:57 ` [Bug c/107683] [13/14 " rguenth at gcc dot gnu.org
2023-07-27  9:24 ` rguenth at gcc dot gnu.org
2024-03-23 21:39 ` pinskia at gcc dot gnu.org
2024-03-23 21:44 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).