This is the mail archive of the egcs-bugs@egcs.cygnus.com 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]

Re: what is wrong here?


> > namespace N {
> > class C {
> >         friend void ::f ();
> 
> > bug.cc:4: parse error before `('
> 
> Thanks for your bug report.  I'm installing a simplified version of
> your testcase in the testsuite.

This is a know bug (at least to me). g++ does not support
globally-scoped friends. I tried changing that, but that broke another
test case where globally-scoping is used to disambiguate declarations
and expressions.

Anyway, I believe this can't be fixed with the current parser; the
rewrite is urgently needed... If anybody can come up with the
appropriate bison magic to fix this, please let me know.

Regards,
Martin

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