2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / class-deduction28.C
blob2fec7f79bac347c81871f9f338e6ec8bcf794a49
1 // PR c++/79350
2 // { dg-do compile { target c++17 } }
4 template <class T>
5 struct A
7   explicit A(T);
8 };
11 A a (42);
12 A a2 = 42;                      // { dg-error "" }
14 template <class T>
15 struct B
17   B(T*);
20 template <class T>
21 explicit B(T) -> B<T*>;
23 B b1 (0);
24 B b2 = 0;                       // { dg-error "" }