g++ 2.95.2 error parsing a scoped friend declaration

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Fri Apr 7 00:24:00 GMT 2000


> the program below fails to compile when A<T> is prefixed with the scope
> resolution operator. Removing it allows it to compile.

Thanks for your bug report. This is a known bug (to me, at least), and
it is very hard to fix given the current parser. There is a patch to
have it accept globally-qualified friends, but that breaks other
stuff. If the mythical parser re-write ever happens, that will also be
fixed.

Regards,
Martin


More information about the Gcc-bugs mailing list