ICE: Namespaces, templates, and friends, oh my!

Hyman Rosen hymie@prolifics.com
Wed May 10 08:04:00 GMT 2000


The following code gives

5: Internal compiler error.
5: Please submit a full bug report.
5: See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.

namespace X
{
	template <class T> class C
	{
		template <class T2> friend class C;	// Line 5
	};
}

It compiles OK when the code is not in a namespace.


More information about the Gcc-bugs mailing list