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:
parent
e033a02335
commit
ef8855d7a0
@ -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>
|
||||
|
||||
|
16
gcc/testsuite/g++.dg/template/access10.C
Normal file
16
gcc/testsuite/g++.dg/template/access10.C
Normal 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>;
|
Loading…
Reference in New Issue
Block a user