https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100172
Andrew Pinski changed:
What|Removed |Added
Keywords||needs-bisection
--- Comment #4 from And
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100172
Marek Polacek changed:
What|Removed |Added
Ever confirmed|0 |1
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100172
--- Comment #2 from 康桓瑋 ---
The struct bit is a red herring. It can be boiled down to just two concept
keywords:
https://godbolt.org/z/sW7vr3sso
concept concept;
:1:1: warning: C++20 concept definition syntax is 'concept =
'
1 | concept
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100172
--- Comment #1 from 康桓瑋 ---
And gcc-trunk accepts this non-sense snippet:
https://godbolt.org/z/PbTa55eTx
void f(auto) {
struct S {
concept enum E {};
};
[]() requires S::E {};
}
template void f(int);