Commit 79572cb1 by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

re PR c++/9453 (ICE in is_specialization_of, at cp/pt.c:860)

	PR c++/9453
	* g++.dg/template/friend15.C: New test.

From-SVN: r70115
parent 76bf2c97
2003-08-03 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/9453
* g++.dg/template/friend15.C: New test.
2003-08-03 Neil Booth <neil@daikokuya.co.uk>
* lib/dg-pch.exp: Work round PCH bug.
......
// { dg-do compile }
// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
// PR c++/9453
// Access checking when template friend is defined in class.
template <typename> class X {
private:
struct Inner;
template <typename R>
friend typename X<R>::Inner * foo () { return 0; }
};
template class X<void>;
struct U {
void bar () { foo<void> (); }
};
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