[Bug preprocessor/12743] [3.4 Regression] Multi-line strings not diagnosed when occurring in a macro call

ggreif at lucent dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 24 13:43:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12743



------- Additional Comments From ggreif at lucent dot com  2003-10-24 13:41 -------
Subject: Re:  [3.4 Regression] Multi-line strings
 not diagnosed when occurring in a macro call

neil at daikokuya dot co dot uk wrote:
> 
> 
> This is intended behaviour.  It's undefined according to the
> standard, and I changed the way we do it in 3.4.
> 
> Neil.

I readily accept that this is forbidden by the standard,
I just wanted to criticize that the error message is
directing me to the end of the file being compiled.

I find that old code sometimes has such constructs a dozen
times, and without a line number it is _really_ hard to find
them in the code.

In fact I request that the reported line number refers to the
location of the multi-line string and tell me "multi-line string
literals are not supported any more".

The emphasis is the line number.


Thanks anyway for the prompt response,

	Gabor



More information about the Gcc-bugs mailing list