This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Line number question
- To: Dave Raggett <dave_raggett at hotmail dot com>
- Subject: Re: Line number question
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Fri, 29 Dec 2000 13:45:16 +0000
- Cc: gcc at gcc dot gnu dot org
- References: <F115N4CxpAOAkK5LqN3000041b8@hotmail.com>
Dave Raggett wrote:-
> The g++ front end 's preprocessor will merges line in function
> skip_escaped_newlines
> ,why not do it at c++ compiler?
>
> look at these codes
> int Myother;//line number is 1
> int My\
> xyz=1;int i=2;
>
> The line number of Declaration 'i' will be 2.but it's lineno in source file
> is 3.
I believe GCC has always done this.
Anyway, I really don't think it's worth worrying about unduly.
Neil.