blob: 90d8ba91e184c80c9b122c6730c56b0d8979133e [file] [log] [blame]
// { dg-do compile { target c++17 } }
template <class T> struct A
{
template <auto v> struct Y;
template <auto* p> struct Y<p> { using type1 = decltype (p); };
template <auto** pp> struct Y<pp> { using type2 = decltype (pp); };
};
int i;
int *p;
A<void>::Y<&i>::type1 t1;
A<void>::Y<&p>::type2 t2;