From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DDDBF3858D28; Wed, 23 Feb 2022 17:59:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DDDBF3858D28 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/104668] New: [12 Regression] ICE in lookup_attribute_spec, at attribs.cc:425 Date: Wed, 23 Feb 2022 17:59:16 +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: 12.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, 23 Feb 2022 17:59:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104668 Bug ID: 104668 Summary: [12 Regression] ICE in lookup_attribute_spec, at attribs.cc:425 Product: gcc Version: 12.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 20220123 and 20220130 : (derived from g++.dg/cpp0x/lambda/lambda-variadic15.C) $ cat z1.cc template void sink(Ts...); template void f(Ts...) { sink([] { struct alignas:Ts) S {}; }...); } } int main() { f(0); } $ g++-12-20220220 -c z1.cc z1.cc: In lambda function: z1.cc:5:20: internal compiler error: Segmentation fault 5 | sink([] { struct alignas:Ts) S {}; }...); } | ^~~~~~~ 0xda25ef crash_signal ../../gcc/toplev.cc:322 0x89f4f1 lookup_attribute_spec(tree_node const*) ../../gcc/attribs.cc:425 0x75217e is_late_template_attribute ../../gcc/cp/decl2.cc:1243 0x75217e splice_template_attributes(tree_node**, tree_node*) ../../gcc/cp/decl2.cc:1340 0x752b1e cplus_decl_attributes(tree_node**, tree_node*, int) ../../gcc/cp/decl2.cc:1662 0x7eabc8 cp_parser_class_head ../../gcc/cp/parser.cc:26646 0x7eabc8 cp_parser_class_specifier_1 ../../gcc/cp/parser.cc:25824 0x7eb670 cp_parser_class_specifier ../../gcc/cp/parser.cc:26204 0x7eb670 cp_parser_type_specifier ../../gcc/cp/parser.cc:19348 0x7ec1a6 cp_parser_decl_specifier_seq ../../gcc/cp/parser.cc:15911 0x7ecd61 cp_parser_simple_declaration ../../gcc/cp/parser.cc:15159 0x7ee769 cp_parser_declaration_statement ../../gcc/cp/parser.cc:14367 0x7eed6b cp_parser_statement ../../gcc/cp/parser.cc:12452 0x7efcb4 cp_parser_statement_seq_opt ../../gcc/cp/parser.cc:12856 0x7efd6f cp_parser_compound_statement ../../gcc/cp/parser.cc:12808 0x7f0778 cp_parser_function_body ../../gcc/cp/parser.cc:25062 0x7f0778 cp_parser_lambda_body ../../gcc/cp/parser.cc:11799 0x7f0778 cp_parser_lambda_expression ../../gcc/cp/parser.cc:11118 0x7f0778 cp_parser_primary_expression ../../gcc/cp/parser.cc:5700 0x7f3725 cp_parser_postfix_expression ../../gcc/cp/parser.cc:7652=