blob: 0a260850be073c702d3af8a925cc42405f2a5439 [file] [log] [blame]
// { dg-do compile { target c++17 } }
template <template <class> class T>
void f()
{
T t = 42; // { dg-error "B" }
}
template <class T>
struct A
{
A(T);
};
template <class T> using B = T;
int main()
{
f<A>();
f<B>(); // { dg-message "here" }
}