3 // Origin: Debian GCC maintainers <debian-gcc@lists.debian.org>
4 // Volker Reichelt <reichelt@gcc.gnu.org>
6 // PR c++/16706: Dependent type calculation during access checking
8 template<typename> struct A
11 template<typename> struct X {};
14 template<typename T> struct B
16 typename A<T>::template X<int> x;
17 template<typename> struct C;
20 template<typename T> template<typename U> struct B<T>::C<U*>
26 template struct B<int>::C<int*>;