re PR c++/10849 (Cannot define an out-of-class specialization of a private nested template class)

PR c++/10849
	* g++.dg/template/access12.C: New test.

From-SVN: r69186
This commit is contained in:
Kriang Lerdsuwanakij 2003-07-10 12:48:17 +00:00 committed by Kriang Lerdsuwanakij
parent c87d821bd4
commit 0c3b76ea50
2 changed files with 18 additions and 0 deletions

View 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.

View File

@ -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*> {};