Friend Template Internal compiler error g++ (egcs-2.91.60) x86

Agrawal, Mukesh mukesh.agrawal@intel.com
Fri Jul 30 14:10:00 GMT 1999


The following code causes an internal compiler error:

class foo {
	template<class bar> friend class bar;
}

main() {
}

command line: g++ bugger.cc
compiler: g++ (egcs-2.91.60), x86 linux (debian)
error msg
	bugger.cc:2: Internal compiler error.
	bugger.cc:2: Please submit a full bug report to
`egcs-bugs@cygnus.com'.
	bugger.cc:2: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for
details.

I'm not sure what the purpose of such a declaration would be, but I stumbled
across the error, and figured I might as well send it on in.

  <<Bugger.tar.bz2>> 


More information about the Gcc-bugs mailing list