public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "steinar+gcc at gunderson dot no" <gcc-bugzilla@gcc.gnu.org> 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 [thread overview] Message-ID: <bug-103273-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103273 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) bigscreen:~/creduce> cat fts0opt.i template <class a> 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 /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:24010 0xf578c3 cp_parser_template_type_arg /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:24105 0xf579ef cp_parser_template_argument /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:18660 0xf579ef cp_parser_template_argument_list /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:18571 0xf579ef cp_parser_enclosed_template_argument_list /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:31853 0xf58e76 cp_parser_template_id /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:18108 0xf5969b cp_parser_class_name /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:25535 0xf5035a cp_parser_qualifying_entity /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:7048 0xf5035a cp_parser_nested_name_specifier_opt /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:6730 0xf45f4d cp_parser_constructor_declarator_p /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:30712 0xf45f4d cp_parser_decl_specifier_seq /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:15743 0xf469b4 cp_parser_simple_declaration /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:15006 0xf76f25 cp_parser_declaration /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:14819 0xf778fe cp_parser_toplevel_declaration /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:14840 0xf778fe cp_parser_translation_unit /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:4978 0xf778fe c_parse_file() /build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:47653 0x10a4a4d c_common_parse_file() /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 <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.
next reply other threads:[~2021-11-16 12:40 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-16 12:40 steinar+gcc at gunderson dot no [this message] 2021-11-16 12:44 ` [Bug c++/103273] " steinar+gcc at gunderson dot no 2021-11-16 12:46 ` [Bug c++/103273] [11/12 " rguenth at gcc dot gnu.org 2021-11-16 12:47 ` rguenth at gcc dot gnu.org 2021-11-16 12:55 ` [Bug c++/103273] [9/10/11/12 " jakub at gcc dot gnu.org 2021-11-17 5:55 ` pinskia at gcc dot gnu.org 2022-05-27 9:46 ` [Bug c++/103273] [10/11/12/13 " rguenth at gcc dot gnu.org 2022-06-28 10:46 ` jakub at gcc dot gnu.org 2023-07-07 10:41 ` [Bug c++/103273] [11/12/13/14 " rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-103273-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).