gcc 2.95.2 ICE with templates
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Wed Feb 23 01:03:00 GMT 2000
> I do not understand the error message, do you by any chanse know
> what is wrong with my code example?
The 'class' you declare as a friend is not a class, but a
typedef-name. You must not use a typedef-name in an elaborated type
specifier, not even in a friend declaration. If you write
friend class NoCleanupMgr2;
even g++ 2.95 compiles it fine.
Regards,
Martin
More information about the Gcc-bugs
mailing list