From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 817A139AF193; Wed, 10 Feb 2021 17:06:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 817A139AF193 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99062] New: [10/11 Regression] ICE in tree_to_uhwi, at tree.h:4579 Date: Wed, 10 Feb 2021 17:06:25 +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: 11.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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2021 17:06:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99062 Bug ID: 99062 Summary: [10/11 Regression] ICE in tree_to_uhwi, at tree.h:4579 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Changed between 20190512 and 20190519 : $ cat z1.cc enum { a =3D 1 << 31 }; void *f () __attribute__ ((assume_aligned (a, 4))); $ g++-11-20210207 -c z1.cc z1.cc:2:50: internal compiler error: in tree_to_uhwi, at tree.h:4579 2 | void *f () __attribute__ ((assume_aligned (a, 4))); | ^ 0x8835a6 tree_to_uhwi(tree_node const*) ../../gcc/tree.h:4579 0x8835a6 handle_assume_aligned_attribute ../../gcc/c-family/c-attribs.c:3565 0x823311 decl_attributes(tree_node**, tree_node*, int, tree_node*) ../../gcc/attribs.c:724 0x6e6fc7 cplus_decl_attributes(tree_node**, tree_node*, int) ../../gcc/cp/decl2.c:1596 0x6272a2 grokfndecl ../../gcc/cp/decl.c:9983 0x6d5261 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*, decl_context, int, tree_node**) ../../gcc/cp/decl.c:13818 0x6da5f8 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int, tree_node*, tree_node*, tree_node**) ../../gcc/cp/decl.c:5333 0x79bffb cp_parser_init_declarator ../../gcc/cp/parser.c:21660 0x77cf3a cp_parser_simple_declaration ../../gcc/cp/parser.c:14381 0x7a0ea5 cp_parser_declaration ../../gcc/cp/parser.c:14078 0x7a03db cp_parser_translation_unit ../../gcc/cp/parser.c:4936 0x7a03db c_parse_file() ../../gcc/cp/parser.c:45179 0x86d982 c_common_parse_file() ../../gcc/c-family/c-opts.c:1218=