]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
decl2.c (arg_assoc): Deal with COMPONENT_REFs inside TEMPLATE_ID_EXPRs.
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 4 Sep 2000 10:23:29 +0000 (10:23 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 4 Sep 2000 10:23:29 +0000 (10:23 +0000)
* decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
TEMPLATE_ID_EXPRs.

From-SVN: r36132

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 0aafd37f6bee031d88bc0b5983c5f3e66bbc473f..3d01f81feb78dd373f2250f14a09f50e314c7775 100644 (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
index 90c6c3e4d1733d408f834ebd0b3f1d750edead69..417348c4033e43df3460706437bedecaf55e701f 100644 (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