summaryrefslogtreecommitdiff
path: root/gcc/cp/mangle.c
diff options
context:
space:
mode:
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>2002-11-09 11:53:18 +0000
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>2002-11-09 11:53:18 +0000
commit5c74d5b03c53581f8f555a958f139740b1ad884c (patch)
tree230f8e2c8b355db4b3b87f5ed6e91bde71543770 /gcc/cp/mangle.c
parent8a9a176bf6e3d1974642d1ecb67555bef4be0acd (diff)
downloadgcc-5c74d5b03c53581f8f555a958f139740b1ad884c.tar.gz
re PR c++/8389 (Access to members of base class & templates)
PR c++/8389 * pt.c (instantiate_template): Push class scope for member functions. (get_mostly_instantiated_function_type): Likewise. Don't call tsubst on context. Remove CONTEXTP and TPARMSP parameters. * cp-tree.h (get_mostly_instantiated_function_type): Adjust. * mangle.c (write_encoding, write_unqualified_name): Adjust. PR c++/8389 * g++.dg/template/access6.C: New test. From-SVN: r58950
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r--gcc/cp/mangle.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index bc7e970cdd9..523db85ab38 100644
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -656,7 +656,7 @@ write_encoding (decl)
tree fn_type;
if (decl_is_template_id (decl, NULL))
- fn_type = get_mostly_instantiated_function_type (decl, NULL, NULL);
+ fn_type = get_mostly_instantiated_function_type (decl);
else
fn_type = TREE_TYPE (decl);
@@ -1011,8 +1011,7 @@ write_unqualified_name (decl)
tree type;
if (decl_is_template_id (decl, NULL))
{
- tree fn_type = get_mostly_instantiated_function_type (decl, NULL,
- NULL);
+ tree fn_type = get_mostly_instantiated_function_type (decl);
type = TREE_TYPE (fn_type);
}
else