public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* web/3932: The information at http://gcc.gnu.org is inaccurate.
@ 2001-08-03 15:26 bcr
  0 siblings, 0 replies; 2+ messages in thread
From: bcr @ 2001-08-03 15:26 UTC (permalink / raw)
  To: gcc-gnats; +Cc: mchen, leonb

>Number:         3932
>Category:       web
>Synopsis:       The information at http://gcc.gnu.org is inaccurate.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gerald
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 03 15:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     bcr@lizardtech.com
>Release:        gcc3.0
>Organization:
>Environment:
web
>Description:
On http://gcc.gnu.org/bugs.html , the following text is included:

> G++ now implements type access control on member types. Defect report 45 
> clarifies that nested classes are members of the class they are nested in, and 
> so are granted access to private members of that class.

There are several problems with this text. First off, defect 45, talks
about template implimentations, not Nested classes. So the refered defect
# must be wrong.

Second, according to "C++ Programming Language, Third Edition", by
Bjarne Stroustrup, the creator of C++:

Section C.11.3.

The members of a member class have no special access to members
of an enclosing class. Simularly members of an enclosing class
have no special access to members of a nested class; the
usual access rules (section 10.2.2) shall be obeyed. For example:

class Outer {
typedef int T;
int i;
public:
int i2;
static int x;
class Inner {
int x;
T y; // error: Outer::T is private
public:
void f(Outer *p,int v);
};
int g(Inner *p);
};

...
>How-To-Repeat:
Try the examples in:
C++ Programming Language, Third Edition", by
Bjarne Stroustrup, the creator of C++
>Fix:
Updated website with correct information...  Correct the
implimentation of the compiler to follow the specs for nested classes.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: web/3932: The information at http://gcc.gnu.org is inaccurate.
@ 2001-08-03 23:05 aoliva
  0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-08-03 23:05 UTC (permalink / raw)
  To: leonb, bcr, gcc-bugs, gcc-prs, gerald, mchen

Synopsis: The information at http://gcc.gnu.org is inaccurate.

State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Fri Aug  3 23:05:08 2001
State-Changed-Why:
    The C++ ARM is not the ISO C++ Standard.
    See http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_defects.html#45
    The DR # is correct.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3932&database=gcc


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

end of thread, other threads:[~2001-08-03 23:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-03 15:26 web/3932: The information at http://gcc.gnu.org is inaccurate bcr
2001-08-03 23:05 aoliva

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).