aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction35.C
blob: b63cf8209da9d57a5f763ae0e277ecc7d01c3400 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile { target c++17 } }

template <class T> struct A;

template <class T> struct A {
  A(T&&);
};

int i;
A a = i;			// { dg-error "" }