* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / var-concept5.C
blob68c4a6f99d9e7f1006967f3a4265e04ce89abd61
1 // { dg-options "-std=c++17 -fconcepts" }
3 template<typename T1, typename T2>
4 concept bool C1 = true;
6 template<typename T1, typename T2, typename T3>
7 concept bool C2 = true;
10 template<C1 T> // { dg-error "not a type" }
11 constexpr bool f1( )  { return true; }
13 template<C2<int> T> // { dg-error "expected|not a type" }
14 constexpr bool f2( )  { return true; }