This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33952] -Wfatal-errors truncates multi-line error messages.
- From: "gcc-bugzilla at contacts dot eelis dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2007 00:44:52 -0000
- Subject: [Bug c++/33952] -Wfatal-errors truncates multi-line error messages.
- References: <bug-33952-5473@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from gcc-bugzilla at contacts dot eelis dot net 2007-10-31 00:44 -------
Then perhaps I ought to explain what I'm using -Wfatal-errors for.
I wrote an IRC bot called geordi ( http://www.eelis.net/geordi ) that accepts
lines of C++ code, compiles them with g++, and either reports the first
compilation error or proceeds to run the resulting program and report its
output. Geordi has proved to be an extremely useful demonstration tool that is
now used in several C++ channels, including Freenode's ##c++ and ##iso-c++.
Since geordi only reports the first error (if any), it passes -Wfatal-errors to
g++ to not waste time compiling further (response time is very important here).
Unfortunately, this means that it currently reports truncated errors for
snippets like the one I mentioned.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33952