blob: 2fec7f79bac347c81871f9f338e6ec8bcf794a49 [file] [log] [blame]
// PR c++/79350
// { dg-do compile { target c++17 } }
template <class T>
struct A
{
explicit A(T);
};
A a (42);
A a2 = 42; // { dg-error "" }
template <class T>
struct B
{
B(T*);
};
template <class T>
explicit B(T) -> B<T*>;
B b1 (0);
B b2 = 0; // { dg-error "" }