OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / access12.C
1 // { dg-do compile }
2
3 // Origin: Giovanni Bajo <giovannibajo@libero.it>
4
5 // PR c++/10849: Incorrect access checking on class template partial
6 // specialization.
7
8 class X {
9   private:
10     template <typename T> struct Y;
11 };
12
13 template <typename T> struct X::Y<T*> {};