OSDN Git Service

* decl2.c (arg_assoc): Deal with COMPONENT_REFs inside
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Sep 2000 10:23:29 +0000 (10:23 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Sep 2000 10:23:29 +0000 (10:23 +0000)
TEMPLATE_ID_EXPRs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36132 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 0aafd37..3d01f81 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 90c6c3e..417348c 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