]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/10849 (Cannot define an out-of-class specialization of a private nested...
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Thu, 10 Jul 2003 12:48:17 +0000 (12:48 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Thu, 10 Jul 2003 12:48:17 +0000 (12:48 +0000)
PR c++/10849
* g++.dg/template/access12.C: New test.

From-SVN: r69186

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/access12.C [new file with mode: 0644]

index 4dd76b7ace26a62a40a78a3f8e9cbd3c47f2c021..25e7b5ff56391fc7ccea33edcdf098cf5b69be8d 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-10  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       PR c++/10849
+       * g++.dg/template/access12.C: New test.
+
 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
 
        * g++.dg/bprob/bprob.exp (prof_ext): Update.
diff --git a/gcc/testsuite/g++.dg/template/access12.C b/gcc/testsuite/g++.dg/template/access12.C
new file mode 100644 (file)
index 0000000..9185d51
--- /dev/null
@@ -0,0 +1,13 @@
+// { dg-do compile }
+
+// Origin: Giovanni Bajo <giovannibajo@libero.it>
+
+// PR c++/10849: Incorrect access checking on class template partial
+// specialization.
+
+class X {
+  private:
+    template <typename T> struct Y;
+};
+
+template <typename T> struct X::Y<T*> {};