PR c++/10849
* g++.dg/template/access10.C: New test.
From-SVN: r67163
+2003-05-25 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
+
+ PR c++/10849
+ * g++.dg/template/access10.C: New test.
+
2003-05-24 Eric Botcazou <ebotcazou@libertysurf.fr>
Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
--- /dev/null
+// { dg-do compile }
+
+// Origin: Giovanni Bajo <giovannibajo@libero.it>
+
+// PR c++/10849: Incorrect access checking on template specialization.
+
+class X {
+ private:
+ template <typename T> struct Y;
+};
+
+template <> struct X::Y<int> {};
+
+template <typename T> struct X::Y {};
+
+template struct X::Y<int>;