public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103927] New: ICE in a recursive class template
@ 2022-01-06  8:00 fchelnokov at gmail dot com
  2022-01-06  8:06 ` [Bug c++/103927] ICE in a recursive class template and lambda in the template argument pinskia at gcc dot gnu.org
  2022-01-06  9:56 ` marxin at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: fchelnokov at gmail dot com @ 2022-01-06  8:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103927

            Bug ID: 103927
           Summary: ICE in a recursive class template
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fchelnokov at gmail dot com
  Target Milestone: ---

This program
```
template<auto>
struct A{};

template<int N, class T = A<[]{}>>
struct B : B<N-1> {};

template<class T>
struct B<0,T> {};

B<1, int> x;
```
is accepted by Clang but produces Internal Compiler Error in GCC.

Demo: https://gcc.godbolt.org/z/z5aGj9ovr

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

* [Bug c++/103927] ICE in a recursive class template and lambda in the template argument
  2022-01-06  8:00 [Bug c++/103927] New: ICE in a recursive class template fchelnokov at gmail dot com
@ 2022-01-06  8:06 ` pinskia at gcc dot gnu.org
  2022-01-06  9:56 ` marxin at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-06  8:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103927

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-01-06
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

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

* [Bug c++/103927] ICE in a recursive class template and lambda in the template argument
  2022-01-06  8:00 [Bug c++/103927] New: ICE in a recursive class template fchelnokov at gmail dot com
  2022-01-06  8:06 ` [Bug c++/103927] ICE in a recursive class template and lambda in the template argument pinskia at gcc dot gnu.org
@ 2022-01-06  9:56 ` marxin at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-01-06  9:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103927

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r9-6733-g03bed1538f8c71f0, it was rejected before the revision.

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

end of thread, other threads:[~2022-01-06  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06  8:00 [Bug c++/103927] New: ICE in a recursive class template fchelnokov at gmail dot com
2022-01-06  8:06 ` [Bug c++/103927] ICE in a recursive class template and lambda in the template argument pinskia at gcc dot gnu.org
2022-01-06  9:56 ` marxin 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).