This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/5655: 11.1.3 not enforced



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]