public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/97679] New: ICE with CTAD on a nested class template with constrained constructor
@ 2020-11-02 18:47 ppalka at gcc dot gnu.org
  2020-11-03  2:56 ` [Bug c++/97679] ICE with CTAD for " ppalka at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-11-02 18:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97679
           Summary: ICE with CTAD on a nested class template with
                    constrained constructor
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

$ cat testcase.C
template <bool V> struct A {
  template <class T> struct B { B(T) requires V; };
};

A<true>::B x(0);

$ g++ -std=c++20 testcase.C
testcase.C: In substitution of ‘template<class T> B(T)-> A<true>::B<T> requires
 T [with T = int]’:
testcase.C:5:15:   required from here
testcase.C:5:15: internal compiler error: Segmentation fault
    5 | A<true>::B x(0);
      |               ^

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

end of thread, other threads:[~2022-05-04  0:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02 18:47 [Bug c++/97679] New: ICE with CTAD on a nested class template with constrained constructor ppalka at gcc dot gnu.org
2020-11-03  2:56 ` [Bug c++/97679] ICE with CTAD for " ppalka at gcc dot gnu.org
2021-01-19 15:43 ` [Bug c++/97679] [10/11 Regression] [concepts] " ppalka at gcc dot gnu.org
2021-02-26 12:13 ` rguenth at gcc dot gnu.org
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2021-04-08 17:10 ` cvs-commit at gcc dot gnu.org
2021-04-08 20:06 ` [Bug c++/97679] [10 " ppalka at gcc dot gnu.org
2022-05-04  0:28 ` ppalka 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).