This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [c++] file numbering confusion


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]