From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2F0833858D28; Mon, 4 Oct 2021 18:39:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F0833858D28 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102593] New: [10/11/12 Regression] ICE in cp_oacc_check_attachments, at cp/semantics.c:6561 Date: Mon, 04 Oct 2021 18:39:11 +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: Mon, 04 Oct 2021 18:39:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102593 Bug ID: 102593 Summary: [10/11/12 Regression] ICE in cp_oacc_check_attachments, at cp/semantics.c:6561 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: --- Changed between 20191215 and 20200105 : $ cat z1.cc template void f () { struct t { int a; }; #pragma acc data detach (t.a) ; } $ g++-12-20211003 -c z1.cc -fopenacc z1.cc: In function 'void f()': z1.cc:5:32: internal compiler error: Segmentation fault 5 | #pragma acc data detach (t.a) | ^ 0xe17d4f crash_signal ../../gcc/toplev.c:331 0x8f6da6 cp_oacc_check_attachments ../../gcc/cp/semantics.c:6561 0x90842a finish_omp_clauses(tree_node*, c_omp_region_type) ../../gcc/cp/semantics.c:7850 0x897fb4 cp_parser_oacc_all_clauses ../../gcc/cp/parser.c:39710 0x8b3009 cp_parser_oacc_data ../../gcc/cp/parser.c:44231 0x8b3009 cp_parser_omp_construct ../../gcc/cp/parser.c:46870 0x8897b9 cp_parser_pragma ../../gcc/cp/parser.c:47594 0x8905b7 cp_parser_statement ../../gcc/cp/parser.c:12266 0x8913d4 cp_parser_statement_seq_opt ../../gcc/cp/parser.c:12722 0x89148f cp_parser_compound_statement ../../gcc/cp/parser.c:12671 0x8af888 cp_parser_function_body ../../gcc/cp/parser.c:24902 0x8af888 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.c:24953 0x8afd36 cp_parser_function_definition_after_declarator ../../gcc/cp/parser.c:31083 0x8b0c57 cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/cp/parser.c:30999 0x8b0c57 cp_parser_init_declarator ../../gcc/cp/parser.c:22436 0x8b35b6 cp_parser_single_declaration ../../gcc/cp/parser.c:31586 0x8b37d5 cp_parser_template_declaration_after_parameters ../../gcc/cp/parser.c:31151 0x8b3f9b cp_parser_explicit_template_declaration ../../gcc/cp/parser.c:31417 0x8b3f9b cp_parser_template_declaration_after_export ../../gcc/cp/parser.c:31436 0x8b61f9 cp_parser_declaration ../../gcc/cp/parser.c:14759=