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).