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.