From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AA5DE3858D39; Tue, 21 Sep 2021 19:19:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA5DE3858D39 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102433] New: [11/12 Regression] ICE in ~saved_token_sentinel, at cp/parser.c:1293 Date: Tue, 21 Sep 2021 19:19:12 +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: Tue, 21 Sep 2021 19:19:12 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102433 Bug ID: 102433 Summary: [11/12 Regression] ICE in ~saved_token_sentinel, at cp/parser.c:1293 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 20210404 and 20210411 : (gcc configured with --enable-checking=3Dyes) $ cat z1.cc void f () { #pragma omp task depend(in:this) ; } $ g++-12-20210919 -c z1.cc -fopenmp z1.cc: In function 'void f()': z1.cc:3:29: error: invalid use of 'this' in non-member function 3 | #pragma omp task depend(in:this) | ^ z1.cc:4:3: internal compiler error: in ~saved_token_sentinel, at cp/parser.c:1293 4 | ; | ^ 0x8f2770 saved_token_sentinel::~saved_token_sentinel() ../../gcc/cp/parser.c:1293 0x8f2770 cp_parser_statement ../../gcc/cp/parser.c:12062 0x8f2894 cp_parser_statement_seq_opt ../../gcc/cp/parser.c:12713 0x8f2977 cp_parser_compound_statement ../../gcc/cp/parser.c:12662 0x9182f0 cp_parser_function_body ../../gcc/cp/parser.c:24893 0x9182f0 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.c:24944 0x91896a cp_parser_function_definition_after_declarator ../../gcc/cp/parser.c:31066 0x919be4 cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/cp/parser.c:30982 0x919be4 cp_parser_init_declarator ../../gcc/cp/parser.c:22427 0x8ef1c2 cp_parser_simple_declaration ../../gcc/cp/parser.c:15133 0x920d5e cp_parser_declaration ../../gcc/cp/parser.c:14819 0x921985 cp_parser_translation_unit ../../gcc/cp/parser.c:4978 0x921985 c_parse_file() ../../gcc/cp/parser.c:47694 0xaa4682 c_common_parse_file() ../../gcc/c-family/c-opts.c:1236=