Commit ef8855d7 by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

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
parent e033a023
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>
......
// { 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>;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment