// PR c++/92556 // { dg-do compile { target c++20 } } // Having this as a hard error is consistent with template argument deduction; // it's an open core issue (jason 2020-02-14). template concept has_value = requires { []{T::value;}; }; // { dg-error "" } template void f() { } template void f() { } void q() { f(); }