This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Line number question
- To: gcc at gcc dot gnu dot org
- Subject: Re: Line number question
- From: "Dave Raggett" <dave_raggett at hotmail dot com>
- Date: Fri, 29 Dec 2000 05:12:39 -0000
I mean gcc's some declaration 's line number will be wrong
because preprocessor had merged some lines though these lines were
in one semantic line. the line number generated by gcc is not as same
as it's original line number in souce file.
>From: "Dave Raggett" <dave_raggett@hotmail.com>
>To: gcc@gcc.gnu.org
>Subject: Line number question
>Date: Fri, 29 Dec 2000 03:37:34 -0000
>
>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.
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.