c++/5655: 11.1.3 not enforced
pcarlini@unitus.it
pcarlini@unitus.it
Sun Feb 10 16:32:00 GMT 2002
>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:
More information about the Gcc-bugs
mailing list