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


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

Re: C++ parse error in gcc 2.95


> When DECL is defined as 1, the construct (::f<>) generates a parse
> error

Thanks for your bug report. This is a known problem. It is inherently
hard to fix, as allowing :: qualification on friends introduces a
number of reduce-reduce conflicts in the parser, which have the
undesirable side affect of invalidating valid code.

In short, the only real fix is a rewrite of the C++ parser in g++;
there are efforts underway to develop such a rewrite.

Sorry for the bad news,
Martin


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