[c++] file numbering confusion
Neil Booth
neil@daikokuya.demon.co.uk
Fri Mar 16 11:02:00 GMT 2001
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.
More information about the Gcc-bugs
mailing list