decl2.c (arg_assoc): Deal with COMPONENT_REFs inside TEMPLATE_ID_EXPRs.

* decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
	TEMPLATE_ID_EXPRs.

From-SVN: r36132
This commit is contained in:
Nathan Sidwell 2000-09-04 10:23:29 +00:00 committed by Nathan Sidwell
parent 25ffb1f653
commit 3338663bef
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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