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

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

From-SVN: r67163
This commit is contained in:
Kriang Lerdsuwanakij 2003-05-25 10:34:51 +00:00 committed by Kriang Lerdsuwanakij
parent e033a02335
commit ef8855d7a0
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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>

View File

@ -0,0 +1,16 @@
// { 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>;