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]
Other format: [Raw text]

[Bug c++/55252] Caret diagnostic doesn't show useful location when macro clashes with name in system header


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55252

--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It would be less of a pain if -Wsystem-headers caused both locations to be
printed, but it doesn't, so sometimes the only option is to dump the
preprocessed source without line markers and then compile that to get two
locations, then map the location in the preprocessed source back to a line in
the original source.


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