c++/2137
nathan@gcc.gnu.org
nathan@gcc.gnu.org
Mon Mar 26 00:46:00 GMT 2001
The following reply was made to PR c++/2137; it has been noted by GNATS.
From: nathan@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, nathan@codesourcery.com, nathan@gcc.gnu.org
Cc:
Subject: Re: c++/2137
Date: 26 Mar 2001 08:42:09 -0000
Synopsis: friend access and DR 209
State-Changed-From-To: analyzed->closed
State-Changed-By: nathan
State-Changed-When: Mon Mar 26 00:42:09 2001
State-Changed-Why:
Applied to mainline
2001-03-26 Nathan Sidwell <nathan@codesourcery.com>
Implement DR 209
* cp-tree.h (skip_type_access_control,
reset_type_access_control): Prototype.
* decl.c (grokdeclarator): Access of friends is not checked.
* parse.y (component_decl_list): Reset type access control.
* semantics.c (decl_type_access_control): Clear
current_type_lookups.
(save_type_access_control): Don't save if not deferring.
(skip_type_access_control, reset_type_access_control): New
functions.
(begin_class_definition): Do type access control for basetypes.
Start deferred access control.
(finish_class_definition): Resume immediate access control if
this is a local class.
2001-03-26 Nathan Sidwell <nathan@codesourcery.com>
* g++.old-deja/g++.other/friend9.C: Expect no errors.
* g++.old-deja/g++.robertl/eb56.C: Make typedef public.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2137&database=gcc
More information about the Gcc-prs
mailing list