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: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 Sep 2016 23:05:11 +0000
- Subject: [Bug c++/33952] -Wfatal-errors truncates multi-line error messages.
- Auto-submitted: auto-generated
- References: <bug-33952-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33952
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dmalcolm at gcc dot gnu.org
--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
(In reply to Eelis from comment #2)
> 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.
Eelis: FWIW, gcc has a -fmax-errors=n option; I wonder if setting that to 1
might be a better fit for geordi? (just thinking aloud here).