]> gcc.gnu.org Git - gcc.git/commit
re PR c++/9030 (Template friends and access to local classes)
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Wed, 8 Jan 2003 14:42:39 +0000 (14:42 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Wed, 8 Jan 2003 14:42:39 +0000 (14:42 +0000)
commit2b59fc25c6e31acae34c6ab5c108941e5d31e5b4
treeb20f75bc20fe6a1ea780fb19af201a2a9529519e
parentc5e7ce43a58f9ed299a496f3c3487a7ce7b32de3
re PR c++/9030 (Template friends and access to local classes)

PR c++/9030
* decl.c (make_typename_type): Check access only when tf_error.
(make_unbound_class_template): Likewise.
* pt.c (saved_access_scope): New variable.
(push_access_scope_real): New function.
(push_access_scope): Likewise.
(pop_access_scope): Likewise.
(tsubst_default_argument): Use them.
(instantiate_template): Likewise.
(regenerate_decl_from_template): Likewise.
(instantiate_decl): Likewise.
(get_mostly_instantiated_function_type): Likewise.

* g++.dg/template/friend12.C: New test.
* g++.dg/template/friend13.C: Likewise.
* g++.old-deja/g++.eh/spec6.C: Add missing error message.

From-SVN: r61046
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/friend12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/friend13.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.eh/spec6.C
This page took 0.063064 seconds and 5 git commands to generate.