public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105541] New: ICE: Segmentation fault when template lambda in requires-clause
@ 2022-05-10  2:24 hewillk at gmail dot com
  2022-05-10  2:26 ` [Bug c++/105541] " hewillk at gmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: hewillk at gmail dot com @ 2022-05-10  2:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105541
           Summary: ICE: Segmentation fault when template lambda in
                    requires-clause
           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: ---

template<class>
constexpr bool is_hello = false;

template <typename T>
  requires (!is_hello<T>)
class Hello;

template <typename T>
  requires (!is_hello<T>)
class Hello {};

static_assert(requires { []<Hello<int>>{}; });

https://godbolt.org/z/rTM5chYf3

GCC-11 rejects this valid syntax, and GCC-12 emits ICE.

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

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

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10  2:24 [Bug c++/105541] New: ICE: Segmentation fault when template lambda in requires-clause hewillk at gmail dot com
2022-05-10  2:26 ` [Bug c++/105541] " hewillk at gmail dot com
2022-05-10  7:50 ` [Bug c++/105541] [12/13 Regression] " rguenth at gcc dot gnu.org
2022-05-10 13:46 ` mpolacek at gcc dot gnu.org
2022-05-10 22:18 ` jason at gcc dot gnu.org
2022-05-10 22:22 ` jason at gcc dot gnu.org
2022-05-11 19:30 ` cvs-commit at gcc dot gnu.org
2022-07-01 14:56 ` [Bug c++/105541] [12 " cvs-commit at gcc dot gnu.org
2022-07-01 14:57 ` jason at gcc dot gnu.org
2023-05-25 13:10 ` 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).