summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-04 10:23:29 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-04 10:23:29 +0000
commite4b7bb8bacd9683c9c79995becdaa9d8b69ef63e (patch)
treed0ccd92ddd7ff65220bb6dad5a5875959f497b4f
parent0032d72bee4c26ef6cdbca5f3fdbff968512a7f0 (diff)
downloadppe42-gcc-e4b7bb8bacd9683c9c79995becdaa9d8b69ef63e.tar.gz
ppe42-gcc-e4b7bb8bacd9683c9c79995becdaa9d8b69ef63e.zip
* decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
TEMPLATE_ID_EXPRs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36132 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl2.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 0aafd37f6be..3d01f81feb7 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2000-09-04 Nathan Sidwell <nathan@codesourcery.com>
+
+ * decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
+ TEMPLATE_ID_EXPRs.
+
2000-09-03 Mark Mitchell <mark@codesourcery.com>
* operators.def (ALIGNOF_EXPR, MAX_EXPR, MIN_EXPR): Change
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 90c6c3e4d17..417348c4033 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -5042,6 +5042,9 @@ arg_assoc (k, n)
tree ctx;
tree arg;
+ if (TREE_CODE (template) == COMPONENT_REF)
+ template = TREE_OPERAND (template, 1);
+
/* First, the template. There may actually be more than one if
this is an overloaded function template. But, in that case,
we only need the first; all the functions will be in the same
OpenPOWER on IntegriCloud