2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / access10.C
blob8b4883c254bcd635c3a8c4b76d7bbf63152d2c16
1 // { dg-do compile }
3 // Origin: Giovanni Bajo <giovannibajo@libero.it>
5 // PR c++/10849: Incorrect access checking on template specialization.
7 class X {
8   private:
9     template <typename T> struct Y;
12 template <> struct X::Y<int> {};
14 template <typename T> struct X::Y {};
16 template struct X::Y<int>;