public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103572] New: [11/12 Regression] ICE in build_function_type after undefined type as a template argument during class template argument deduction Date: Mon, 06 Dec 2021 08:38:48 +0000 [thread overview] Message-ID: <bug-103572-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103572 Bug ID: 103572 Summary: [11/12 Regression] ICE in build_function_type after undefined type as a template argument during class template argument deduction Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: error-recovery, ice-on-invalid-code Severity: trivial Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Reduced testcase: template <view_concept urng_t> class view { view(view const & rhs) = default; }; view v1(0); ---- CUT ---- GCC 10 did not ICE: <source>:1:11: error: 'view_concept' has not been declared 1 | template <view_concept urng_t> | ^~~~~~~~~~~~ <source>:6:10: error: class template argument deduction failed: 6 | view v1(0); | ^ <source>:6:10: error: no matching function for call to 'view(int)' <source>:4:3: note: candidate: 'template<<declaration error> > view(const view<<declaration error> >&)-> view<<declaration error> >' 4 | view(view const & rhs) = default; | ^~~~ <source>:4:3: note: template argument deduction/substitution failed: <source>:2:7: note: candidate: 'template<<declaration error> > view(view<<declaration error> >)-> view<<declaration error> >' 2 | class view | ^~~~ <source>:2:7: note: template argument deduction/substitution failed:
next reply other threads:[~2021-12-06 8:38 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-06 8:38 pinskia at gcc dot gnu.org [this message] 2021-12-06 8:39 ` [Bug c++/103572] " pinskia at gcc dot gnu.org 2022-01-21 13:57 ` rguenth at gcc dot gnu.org 2022-04-21 7:50 ` rguenth at gcc dot gnu.org 2023-05-29 10:06 ` [Bug c++/103572] [11/12/13/14 " jakub 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-103572-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).