public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47429] New: -Wfatal-errors hiding line number of offending caller
@ 2011-01-24  5:32 navin.kumar at gmail dot com
  2011-01-24  8:17 ` [Bug c++/47429] " navin.kumar at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: navin.kumar at gmail dot com @ 2011-01-24  5:32 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: -Wfatal-errors hiding line number of offending caller
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: navin.kumar@gmail.com


When compiling with -Wfatal-errors, the line number of the offending caller is
not visible.

Code:
class Blah {
  int test;
};

struct Evil : public Blah {
  int test() { return Blah::test; }
};


When compiling with g++ -c -Wall -Werror, the output is:
test.cc: In member function 'int Evil::test()':
test.cc:3:6: error: 'int Blah::test' is private
test.cc:8: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:3:6: error: 'int Blah::test' is private

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-01-24 23:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-24  5:32 [Bug c++/47429] New: -Wfatal-errors hiding line number of offending caller navin.kumar at gmail dot com
2011-01-24  8:17 ` [Bug c++/47429] " navin.kumar at gmail dot com
2011-01-24 13:53 ` manu at gcc dot gnu.org
2011-01-24 18:03 ` navin.kumar at gmail dot com
2011-01-24 18:06 ` manu at gcc dot gnu.org
2011-01-24 18:34 ` navin.kumar at gmail dot com
2011-01-24 18:35 ` froydnj at codesourcery dot com
2011-01-24 23:17 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).