This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47429] -Wfatal-errors hiding line number of offending caller
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Jan 2011 17:55:40 +0000
- Subject: [Bug c++/47429] -Wfatal-errors hiding line number of offending caller
- Auto-submitted: auto-generated
- References: <bug-47429-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47429
--- Comment #4 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2011-01-24 17:55:29 UTC ---
It is common in the C/C++ front-ends that error() is followed by one or more
notes() providing context, suggestions or more information. (That is, "error:
within this context" should be a note).
We could follow your proposal but I think it will change the output quite a bit
and make it more difficult to understand. There are other even more complex
cases, like printing template candidates, where there are multiple lines of
notes (which currently are multiple calls to inform()).