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

navin.kumar at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 24 08:17:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47429

--- Comment #1 from Navin Kumar <navin.kumar at gmail dot com> 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.cc:6:28: error: within this context

When compiling with g++ -c -Wall -Werror -Wfatal-errors, the output is:
test.cc: In member function ‘int Evil::test()’:
test.cc:2:6: error: ‘int Blah::test’ is private

There is no mention of line 6 when "-Wfatal-errors" is used.



More information about the Gcc-bugs mailing list