diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-09-04 10:23:29 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-09-04 10:23:29 +0000 |
commit | 3338663befa0d6bd8744168d2c1dad9b6dd271a7 (patch) | |
tree | d0ccd92ddd7ff65220bb6dad5a5875959f497b4f /gcc | |
parent | 25ffb1f653a39c0390d82aac0e30610c6dddb431 (diff) | |
download | gcc-3338663befa0d6bd8744168d2c1dad9b6dd271a7.zip gcc-3338663befa0d6bd8744168d2c1dad9b6dd271a7.tar.gz gcc-3338663befa0d6bd8744168d2c1dad9b6dd271a7.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0aafd37..3d01f81 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 90c6c3e..417348c 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 |