aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>1998-05-18 22:53:39 -0400
committerJason Merrill <jason@gcc.gnu.org>1998-05-18 22:53:39 -0400
commit18c32f6939a6c3d4d7b2845bcb7fd14f491602d9 (patch)
tree75ce90883ba979945ab39bb0fb55549270cb01ef /gcc
parent72e61a0705e4aabe0737ff443d31af7b378527f1 (diff)
downloadgcc-18c32f6939a6c3d4d7b2845bcb7fd14f491602d9.zip
gcc-18c32f6939a6c3d4d7b2845bcb7fd14f491602d9.tar.gz
gcc-18c32f6939a6c3d4d7b2845bcb7fd14f491602d9.tar.bz2
tweak
From-SVN: r19860
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index 2fdacd1..0d0fa8c80 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -1472,6 +1472,8 @@ build_member_call (type, name, parmlist)
if (TREE_CODE (name) == TEMPLATE_ID_EXPR
&& TREE_CODE (type) == NAMESPACE_DECL)
{
+ /* 'name' already refers to the decls from the namespace, since we
+ hit do_identifier for template_ids. */
my_friendly_assert (is_overloaded_fn (TREE_OPERAND (name, 0)), 980519);
return build_x_function_call (name, parmlist, current_class_ref);
}