From: Kriang Lerdsuwanakij Date: Sun, 25 May 2003 10:34:51 +0000 (+0000) Subject: re PR c++/10849 (Cannot define an out-of-class specialization of a private nested... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef8855d7a019355492cdd8989add15393b01ac86;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aea6a257452..37b37b4549b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-05-25 Kriang Lerdsuwanakij + + PR c++/10849 + * g++.dg/template/access10.C: New test. + 2003-05-24 Eric Botcazou Kaveh R. Ghazi diff --git a/gcc/testsuite/g++.dg/template/access10.C b/gcc/testsuite/g++.dg/template/access10.C new file mode 100644 index 00000000000..8b4883c254b --- /dev/null +++ b/gcc/testsuite/g++.dg/template/access10.C @@ -0,0 +1,16 @@ +// { dg-do compile } + +// Origin: Giovanni Bajo + +// PR c++/10849: Incorrect access checking on template specialization. + +class X { + private: + template struct Y; +}; + +template <> struct X::Y {}; + +template struct X::Y {}; + +template struct X::Y;