[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / class-deduction1.C
blob476830d9252828b6113f922084e71d82d97fb000
1 // { dg-options "-std=c++17 -fconcepts" }
3 template <class T>
4 concept bool Isint = __is_same_as(T,int);
6 template <class T>
7 struct A
9   int i;
10   A(...);
13 template <Isint I>
14 A(I) -> A<I>;
16 A a(1);
17 A a2(1.0);                      // { dg-error "" }