From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 03ED9384842A; Mon, 2 Aug 2021 18:46:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03ED9384842A From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101731] New: ICE in cp_parser_skip_to_pragma_eol, at cp/parser.c:4055 Date: Mon, 02 Aug 2021 18:46:40 +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, 02 Aug 2021 18:46:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101731 Bug ID: 101731 Summary: ICE in cp_parser_skip_to_pragma_eol, at cp/parser.c:4055 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 with r7 : $ cat z1.cc #pragma acc routine int f (int a()); $ g++-12-20210801 -c z1.cc -fopenacc z1.cc:2:1: error: expected '#pragma acc' clause at end of input 2 | int f (int a()); | ^~~ z1.cc:2:1: internal compiler error: in cp_parser_skip_to_pragma_eol, at cp/parser.c:4055 0x894a09 cp_parser_skip_to_pragma_eol ../../gcc/cp/parser.c:4055 0x8c3601 cp_parser_oacc_all_clauses ../../gcc/cp/parser.c:39055 0x8c5bfe cp_parser_late_parsing_oacc_routine ../../gcc/cp/parser.c:45202 0x8c5bfe cp_parser_late_return_type_opt ../../gcc/cp/parser.c:23580 0x8c5bfe cp_parser_direct_declarator ../../gcc/cp/parser.c:22687 0x8c5bfe cp_parser_declarator ../../gcc/cp/parser.c:22489 0x8df9b3 cp_parser_init_declarator ../../gcc/cp/parser.c:21989 0x8b84ca cp_parser_simple_declaration ../../gcc/cp/parser.c:14887 0x8e728e cp_parser_declaration ../../gcc/cp/parser.c:14592 0x8b190b cp_parser_oacc_routine ../../gcc/cp/parser.c:45163 0x8b190b cp_parser_pragma ../../gcc/cp/parser.c:45951 0x8e7eb5 cp_parser_translation_unit ../../gcc/cp/parser.c:4960 0x8e7eb5 c_parse_file() ../../gcc/cp/parser.c:46179 0xa674d2 c_common_parse_file() ../../gcc/c-family/c-opts.c:1223=