public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102007] New: ICE: in dependent_type_p, at cp/pt.c:26784
@ 2021-08-21 13:04 hewillk at gmail dot com
  2021-08-21 13:07 ` [Bug c++/102007] " hewillk at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: hewillk at gmail dot com @ 2021-08-21 13:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102007
           Summary: ICE: in dependent_type_p, at cp/pt.c:26784
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

This may be a dup of something.


template<class>       concept A = true;
template<class T = A> concept B = sizeof(T);
static_assert(B<>);

https://godbolt.org/z/Mze53c14x

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

* [Bug c++/102007] ICE: in dependent_type_p, at cp/pt.c:26784
  2021-08-21 13:04 [Bug c++/102007] New: ICE: in dependent_type_p, at cp/pt.c:26784 hewillk at gmail dot com
@ 2021-08-21 13:07 ` hewillk at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: hewillk at gmail dot com @ 2021-08-21 13:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from 康桓瑋 <hewillk at gmail dot com> ---
Please note that this bug comes from the following ill-formed code that GCC
accepts.

template<class>       concept A = true;
template<class T = A> concept B = true;
static_assert(B<>);

https://godbolt.org/z/7d54sYhv3

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

end of thread, other threads:[~2021-08-21 13:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-21 13:04 [Bug c++/102007] New: ICE: in dependent_type_p, at cp/pt.c:26784 hewillk at gmail dot com
2021-08-21 13:07 ` [Bug c++/102007] " hewillk at gmail dot com

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