https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99513
Bug ID: 99513
Summary: ICE Segmentation fault when decltype lambda in concept
template list
Product: gcc
Version: 11.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 related/duplicated to the 99505, but I am not sure.
The following invalid code will trigger Segmentation fault on gcc-10 and
gcc-11:
template <decltype([]{})> concept C = true;
auto f() requires C<{}>;
(wandbox: https://wandbox.org/permlink/1gwi5zWcrICysV5G)
(godbolt: https://godbolt.org/z/PMYz6e)