preprocessor/2234: incorrect line numbers
Neil Booth
neil@daikokuya.demon.co.uk
Sun Apr 1 00:00:00 GMT 2001
The following reply was made to PR preprocessor/2234; it has been noted by GNATS.
From: Neil Booth <neil@daikokuya.demon.co.uk>
To: schmid@snake.iap.physik.tu-darmstadt.de
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: preprocessor/2234: incorrect line numbers
Date: Fri, 9 Mar 2001 00:17:03 +0000
schmid@snake.iap.physik.tu-darmstadt.de wrote:-
[A test case]
Thank you. I can reproduce your bug with the preprocessed files, which
is interesting. The preprocessed source does not have the line number
that the diagnostic refers to, and it appears that the preprocessed
source has the correct line numbers.
So, I think that cpplib is doing the right thing. This means that the C++
front end is misinterpreting the same information that stand-alone CPP
(cppmain.c) is correctly interpreting.
So, the bug exists either in the C++ front end proper, or in the
line-number change callback in c-lex.c. I rather suspect the latter;
and will investigate tomorrow.
Neil.
More information about the Gcc-prs
mailing list