aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction8.C
blob: 20cabe00a74605421f473506cd94094fa40d1739 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile { target c++17 } }

template <class T>
struct A
{
  int i;
  A(...);			// { dg-message "candidate" }
};

A a(42);			// { dg-error "" }

template <class T>
A(T) -> A<T>;

A a2(42);