public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103572] New: [11/12 Regression] ICE in build_function_type after undefined type as a template argument during class template argument deduction
@ 2021-12-06  8:38 pinskia at gcc dot gnu.org
  2021-12-06  8:39 ` [Bug c++/103572] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-06  8:38 UTC (permalink / raw)
  To: gcc-bugs

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:

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-29 10:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06  8:38 [Bug c++/103572] New: [11/12 Regression] ICE in build_function_type after undefined type as a template argument during class template argument deduction pinskia at gcc dot gnu.org
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

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).