From ef8855d7a019355492cdd8989add15393b01ac86 Mon Sep 17 00:00:00 2001 From: Kriang Lerdsuwanakij Date: Sun, 25 May 2003 10:34:51 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/template/access10.C | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/access10.C 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;