https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96830
Jonathan Wakely changed:
What|Removed |Added
Last reconfirmed|2020-08-28 00:00:00 |2022-7-20
--- Comment #3 from Jonathan
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96830
--- Comment #2 from Jonathan Wakely ---
G++ still accepts this version, though EDG and Clang reject it:
template concept C = requires { typename T::value_type; };
template
class Foo {
public:
void func();
};
template
void Foo::func()
{}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96830
Jonathan Wakely changed:
What|Removed |Added
Ever confirmed|0 |1
Keywords|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96830
--- Comment #1 from Jonathan Wakely ---
Reduced:
template concept C = requires { typename T::value_type; };
template
requires C
class Foo {
public:
void func();
};
template
void Foo::func()
{}
EDG compiles it without error too. Clang