]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/semantics.c
Implement DR 209
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 26 Mar 2001 08:37:27 +0000 (08:37 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 26 Mar 2001 08:37:27 +0000 (08:37 +0000)
commit788bf0e34ebec318ef42f6a7ffd9e8632756908a
treee80deebc6a447417a1ef0f9eae56f55fd7dabfbb
parent04c5433d684a6e22d266a2bd067eb42e28ee9d60
Implement DR 209

cp:
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.
testsuite:
* g++.old-deja/g++.other/friend12.C: New test.
* g++.old-deja/g++.other/friend9.C: Expect no errors.
* g++.old-deja/g++.robertl/eb56.C: Make typedef public.

From-SVN: r40841
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/parse.y
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/friend12.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/friend9.C
gcc/testsuite/g++.old-deja/g++.robertl/eb56.C
This page took 0.061016 seconds and 5 git commands to generate.