2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / gcc / testsuite / g++.dg / template / typedef40.C
blob1d8be358a2022a2769b75fd615c0db478408c6bd
1 // PR c++/55058
3 template <typename T>
4 struct A { };
6 template <typename T>
7 struct B {
8   B(const A<T> T::* p);
9   typedef A<T> D;
12 template <typename T>
13 B<T>::B(const D T::* p) { }
15 struct C {
16   C() : e() {};
18   const A<C> e;
21 B<C> g(&C::e);