public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/6479: access control bug
@ 2002-04-26 13:31 mmitchel
0 siblings, 0 replies; 3+ messages in thread
From: mmitchel @ 2002-04-26 13:31 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, kunert, mmitchel, nobody
Synopsis: access control bug
Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: mmitchel
Responsible-Changed-When: Fri Apr 26 13:31:15 2002
Responsible-Changed-Why:
Testing a fix.
State-Changed-From-To: open->analyzed
State-Changed-By: mmitchel
State-Changed-When: Fri Apr 26 13:31:15 2002
State-Changed-Why:
Confirmed as a regression from GCC 3.0.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6479
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/6479: access control bug
@ 2002-04-26 15:38 mmitchel
0 siblings, 0 replies; 3+ messages in thread
From: mmitchel @ 2002-04-26 15:38 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, kunert, mmitchel
Synopsis: access control bug
State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Fri Apr 26 15:38:27 2002
State-Changed-Why:
Fixed in GCC 3.1.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6479
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/6479: access control bug
@ 2002-04-26 11:06 kunert
0 siblings, 0 replies; 3+ messages in thread
From: kunert @ 2002-04-26 11:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 6479
>Category: c++
>Synopsis: access control bug
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Fri Apr 26 11:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Thomas Kunert
>Release: gcc version 3.1 20020423
>Organization:
>Environment:
$ /opt/bin/g++-31 -v
Reading specs from /opt/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: ../gcc/configure i686-pc-linux-gnu --enable-shared --prefix=/opt --enable-languages=c,c++,f77
Thread model: single
gcc version 3.1 20020423 (prerelease)
>Description:
The following code is being rejected.
This is a regression from 3.0.
class A {
protected:
A& operator=( const A& a ) { return *this; }
};
class B : public A
{};
int main()
{
B x;
B y;
x = y;
}
$ /opt/bin/g++-31 x2.cc
x2.cc: In member function `B& B::operator=(const B&)':
x2.cc:3: `A& A::operator=(const A&)' is protected
x2.cc:13: within this context
class B : public A
{};
int main()
{
B x;
B y;
x = y;
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-04-26 22:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-26 13:31 c++/6479: access control bug mmitchel
-- strict thread matches above, loose matches on Subject: below --
2002-04-26 15:38 mmitchel
2002-04-26 11:06 kunert
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).