From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 574623858414; Mon, 14 Nov 2022 17:32:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 574623858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668447121; bh=SgKOFjpWQK0Bn7TZW7fbYXrU8LewvSOs3FD3iUGCUFI=; h=From:To:Subject:Date:From; b=Duu4GuZc0BEbdXn+CIpgMIVGwlAI4l2JHhn81mXyPpfqtIpiiF4aGNxIdRJuTgkvu 1U62RQTg7wbAofnYDfy/zAHNQB1A87I8XIUhtam+HozAcu2qV7Eg/8gcuKxDRiZHrD sg4dwb9MJseUO9pmLsYsvvPIUS1/07tAEzx6nNbs= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107683] New: [13 Regression] ICE in int_fits_type_p, at tree.cc:8044 Date: Mon, 14 Nov 2022 17:32:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107683 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=3Dyes) $ 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=