This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]