public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/104608] [12 Regression] internal compiler error: in cp_parser_template_id, at cp/parser.cc:18367 Date: Thu, 10 Mar 2022 16:24:12 +0000 [thread overview] Message-ID: <bug-104608-4-0AJWm3KM0T@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-104608-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104608 --- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>: https://gcc.gnu.org/g:4602a494e94835f693a9230adb69ce92249ebf15 commit r12-7601-g4602a494e94835f693a9230adb69ce92249ebf15 Author: Marek Polacek <polacek@redhat.com> Date: Tue Feb 22 15:03:34 2022 -0500 c++: ->template and implicit typedef [PR104608] Here we have a forward declaration of Parameter for which we create an implicit typedef, which is a TYPE_DECL. Then, when looking it up at template definition time, cp_parser_template_id gets (since r12-6754) this TYPE_DECL which it can't handle. This patch defers lookup for TYPE_DECLs that cp_parser_template_id can't handle, a la r12-6879. PR c++/104608 gcc/cp/ChangeLog: * parser.cc (cp_parser_template_name): Repeat lookup of TYPE_DECLs. gcc/testsuite/ChangeLog: * g++.dg/parse/template-keyword3.C: New test. * g++.dg/parse/template-keyword4.C: New test.
next prev parent reply other threads:[~2022-03-10 16:24 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-20 18:49 [Bug c++/104608] New: " trpost at rocketmail dot com 2022-02-20 22:46 ` [Bug c++/104608] " pinskia at gcc dot gnu.org 2022-02-21 20:53 ` trpost at rocketmail dot com 2022-02-21 20:56 ` pinskia at gcc dot gnu.org 2022-02-21 21:46 ` pinskia at gcc dot gnu.org 2022-02-21 23:02 ` [Bug c++/104608] [12 Regression] " pinskia at gcc dot gnu.org 2022-02-22 19:45 ` mpolacek at gcc dot gnu.org 2022-03-10 16:24 ` cvs-commit at gcc dot gnu.org [this message] 2022-03-10 16:27 ` mpolacek 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-104608-4-0AJWm3KM0T@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).