This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55252] Caret diagnostic doesn't show useful location when macro clashes with name in system header
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 01 Feb 2015 13:50:18 +0000
- Subject: [Bug c++/55252] Caret diagnostic doesn't show useful location when macro clashes with name in system header
- Auto-submitted: auto-generated
- References: <bug-55252-4 at http dot gcc dot gnu dot org/bugzilla/>
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.