[Bug preprocessor/21250] [4.1 Regression] line number 0 for <built-in> causes GAS to complain
segher at kernel dot crashing dot org
gcc-bugzilla@gcc.gnu.org
Thu Apr 28 15:08:00 GMT 2005
------- Additional Comments From segher at kernel dot crashing dot org 2005-04-28 15:08 -------
The C standard has this to say about line numbers, in 6.10.4/2:
The line number of the current source line is one greater than the number of new-line characters read
or introduced in translation phase 1 (5.1.1.2) while processing the source file to the current token.
So, a line number of 0 is impossible. GAS is correct to complain about this.
It would be nice to be consistent, yes; but consistently right, please, not
consistently wrong ;-)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21250
More information about the Gcc-bugs
mailing list