[Bug c++/47429] -Wfatal-errors hiding line number of offending caller

2011-01-24 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47429 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug c++/47429] -Wfatal-errors hiding line number of offending caller

2011-01-24 Thread froydnj at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47429 --- Comment #6 from froydnj at codesourcery dot com 2011-01-24 18:09:12 UTC --- On Mon, Jan 24, 2011 at 06:07:50PM +, navin.kumar at gmail dot com wrote: > Instead of -Wfatal-errors that bombs on the first error, perhaps > -Wfatal-errors=5 tha

[Bug c++/47429] -Wfatal-errors hiding line number of offending caller

2011-01-24 Thread navin.kumar at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47429 --- Comment #5 from Navin Kumar 2011-01-24 18:07:45 UTC --- Hmm. I only need -Wfatal-errors because otherwise a small typo can cause heavily templated code to go berserk and output 10,000 lines of errors. Perhaps a compromise is to have the abi

[Bug c++/47429] -Wfatal-errors hiding line number of offending caller

2011-01-24 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47429 --- Comment #4 from Manuel López-Ibáñez 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" sh

[Bug c++/47429] -Wfatal-errors hiding line number of offending caller

2011-01-24 Thread navin.kumar at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47429 --- Comment #3 from Navin Kumar 2011-01-24 17:42:03 UTC --- Wouldn't the simple fix be to make it a note() that 'int Blah::test' is private and the error() be the caller's attempt to use it?

[Bug c++/47429] -Wfatal-errors hiding line number of offending caller

2011-01-24 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47429 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/47429] -Wfatal-errors hiding line number of offending caller

2011-01-23 Thread navin.kumar at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47429 --- Comment #1 from Navin Kumar 2011-01-24 04:50:18 UTC --- (re-pasted error output): When compiling with g++ -c -Wall -Werror, the output is: test.cc: In member function ‘int Evil::test()’: test.cc:2:6: error: ‘int Blah::test’ is private test.c