* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / alias3.C
blob6e1c39ce1746a3ff55deae20e5fa562d16a7561b
1 // { dg-options "-std=c++17 -fconcepts" }
3 template<typename T>
4   concept bool C() { return __is_class(T); }
6 template<typename T>
7   requires C<T>()
8     using X = T*;
10 int main()
12   X<int> x1; // { dg-error "constraint|invalid" }