This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77462] Error message prints source from wrong file after #line
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 03 Sep 2016 17:43:12 +0000
- Subject: [Bug c++/77462] Error message prints source from wrong file after #line
- Auto-submitted: auto-generated
- References: <bug-77462-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77462
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Hmm, I think this is expected. Take a good example of why #line are used in
the first place: generated files.
IF you are playing preprocessor tricks like this, you get what you deserve in
the error message.
In fact I would say clang got it all wrong.