This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C++ parse error in gcc 2.95
- To: brendt at cnls dot lanl dot gov
- Subject: Re: C++ parse error in gcc 2.95
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Thu, 12 Aug 1999 23:31:14 +0200
- CC: gcc-bugs at gcc dot gnu dot org, brendt at cnls dot lanl dot gov
- References: <37B2E828.2CABAE80@cnls.lanl.gov>
> 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