* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / class-deduction28.C
blob8238e5bc25e52b92f1b25568ac83024dca62afbd
1 // PR c++/79350
2 // { dg-options -std=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 "" }