* g++.dg/template/access10.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67163
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>;