blob: 7289932c486a8ea8e914ae6566d839cf137a7749 [file] [log] [blame]
// PR c++/84355
// { dg-do compile { target c++17 } }
template <class, class> struct same;
template <class T> struct same<T,T> {};
template<typename T> struct A
{
template<class U> struct B
{
B(U);
};
A() {
B b(0);
same<decltype(b),B<int>>{};
}
};
struct C {};
A<C> a;