This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/5655: 11.1.3 not enforced
- From: pcarlini at unitus dot it
- To: gcc-gnats at gcc dot gnu dot org
- Date: 11 Feb 2002 00:22:04 -0000
- Subject: c++/5655: 11.1.3 not enforced
- Reply-to: pcarlini at unitus dot it
>Number: 5655
>Category: c++
>Synopsis: 11.1.3 not enforced
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 10 16:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Paolo Carlini
>Release: gcc version 3.1 20020209 (experimental)
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
It seems that the member access control rule 11.1.3 is not
enforced and the corresponding example does not trigger any
error (or warning):
struct S {
class A;
private:
class A {};
};
>How-To-Repeat:
The EDG front end emits:
"access.cc", line 4: warning: redeclaration of class "S::A" alters its access
class A {};
^
or:
"access.cc", line 4: error: redeclaration of class "S::A" alters its access
class A {};
^
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: