public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19375] New: [3.4,4.0 regression] Access violation diagnostic given twice
@ 2005-01-11 15:10 redi at gcc dot gnu dot org
  2005-01-11 15:14 ` [Bug c++/19375] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: redi at gcc dot gnu dot org @ 2005-01-11 15:10 UTC (permalink / raw)
  To: gcc-bugs

I'm surprised I can't find this reported already, apologies if it has been.

Given:

class A { int i; };

class B : public A { int f() { return i; } };

GCC 3.4 and up prints the same diagnostic twice:

access2.cc: In member function `int B::f()':
access2.cc:1: error: `int A::i' is private
access2.cc:3: error: within this context
access2.cc:1: error: `int A::i' is private
access2.cc:3: error: within this context

GCC 2.95 - 3.3 only printed the diagnostic once:

-- 
           Summary: [3.4,4.0 regression] Access violation diagnostic given
                    twice
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: redi at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-01-19 14:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-11 15:10 [Bug c++/19375] New: [3.4,4.0 regression] Access violation diagnostic given twice redi at gcc dot gnu dot org
2005-01-11 15:14 ` [Bug c++/19375] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-12 11:26 ` lerdsuwa at gcc dot gnu dot org
2005-01-17 14:35 ` lerdsuwa at gcc dot gnu dot org
2005-01-19 14:30 ` cvs-commit at gcc dot gnu dot org
2005-01-19 14:50 ` cvs-commit at gcc dot gnu dot org
2005-01-19 14:51 ` lerdsuwa at gcc dot gnu dot 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).