This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [c++] file numbering confusion
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Subject: Re: [c++] file numbering confusion
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Fri, 16 Mar 2001 19:02:39 +0000
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <200103161838.f2GIcWJ11438@fillmore.constant.com>
Benjamin Kosnik wrote:-
> I keep dropping the ball WRT the line-numbering issue. Here's a small example:
Thanks. I don't believe it is a CPP bug, since the preprocessed output
contains all the right line numbers, and putting a random ']' token at
any place in the preprocessed output the C++ front end reports a syntax
error with the *right file and line number*. This means that the front
end *does* know the correct file and line number. These wrong filename
bugs are only reported for the C++ front end, which further strengthens
my conviction.
Could you check cb_file_change in c-lex.c to confirm it's doing the right
thing with pushing and popping locations and assignment to front-end
global variables?
I'd love to get this fixed, too!
Thanks,
Neil.