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


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

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



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>> 

Bugger.tar.bz2


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