This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]