From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2C079385AC28; Tue, 16 Nov 2021 12:40:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C079385AC28 From: "steinar+gcc at gunderson dot no" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103273] New: [12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010 Date: Tue, 16 Nov 2021 12:40:58 +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: steinar+gcc at gunderson dot no 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, 16 Nov 2021 12:40:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103273 Bug ID: 103273 Summary: [12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: steinar+gcc at gunderson dot no Target Milestone: --- Found while minimizing another regression: gcc version 12.0.0 20210918 (experimental) [master r12-3644-g7afcb534239] (Debian 20210918-1)=20 bigscreen:~/creduce> cat fts0opt.i template struct b; b < b struct { bigscreen:~/creduce> /usr/lib/gcc-snapshot/bin/g++ -c fts0opt.i fts0opt.i:2:14: error: types may not be defined in template arguments 2 | b < b struct { | ^ fts0opt.i:2:15: error: expected '}' at end of input 2 | b < b struct { | ~^ fts0opt.i:2:15: internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010 0x6fa6a2 cp_parser_type_id_1 =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:24010 0xf578c3 cp_parser_template_type_arg =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:24105 0xf579ef cp_parser_template_argument =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:18660 0xf579ef cp_parser_template_argument_list =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:18571 0xf579ef cp_parser_enclosed_template_argument_list =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:31853 0xf58e76 cp_parser_template_id =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:18108 0xf5969b cp_parser_class_name =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:25535 0xf5035a cp_parser_qualifying_entity =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:7048 0xf5035a cp_parser_nested_name_specifier_opt =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:6730 0xf45f4d cp_parser_constructor_declarator_p =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:30712 0xf45f4d cp_parser_decl_specifier_seq =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:15743 0xf469b4 cp_parser_simple_declaration =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:15006 0xf76f25 cp_parser_declaration =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:14819 0xf778fe cp_parser_toplevel_declaration =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:14840 0xf778fe cp_parser_translation_unit =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:4978 0xf778fe c_parse_file() =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:47653 0x10a4a4d c_common_parse_file() =20=20=20=20=20=20=20 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/c-family/c-opts.c:= 1236 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=