* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / member-concept.C
blob4eae9f5b30134aaf61e77445e8b31443c2a82d77
1 // { dg-options "-std=c++17 -fconcepts" }
3 struct Base {
4   template<typename T>
5     static concept bool D() { return __is_same_as(T, int); } // { dg-error "a concept cannot be a member function" }
7   template<typename T, typename U>
8     static concept bool E() { return __is_same_as(T, U); } // { dg-error "a concept cannot be a member function" }
9 };