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


> 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.

a ha. Thanks. Were you able to duplicate my confused gdb output then?

> 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?

...which FE global variables?


-benjamin


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