Macro and namespace

Markus Redeker markus@ibp.de
Thu Nov 25 01:26:00 GMT 1999


On Wed, Nov 24, 1999 at 11:09:03PM +0100, Martin v. Loewis wrote:
> > At least a better error message should be given: "parse error before `('" is
> > quite irritating, and it was so even more in the original context, when
> > there were indeed brackets in that line.
> 
> Thanks for your bug report. Please understand that this is quite
> difficult to do: Once the preprocessor is done, all information is
> lost what the original text was.

I thought about an error message that gives more context. In this case, if
one could see some of the characters after the brackets, one would be able
to see that the error was produced by the macro. 

How much context? Maybe one token before and after the error location should
be reported. It must be enough context to see that the macro preprocessor
did something.


Markus


More information about the Gcc-bugs mailing list