comment
authorJason Merrill <jason@gcc.gnu.org>
Fri, 27 Feb 1998 02:42:03 +0000 (21:42 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 27 Feb 1998 02:42:03 +0000 (21:42 -0500)
From-SVN: r18282

gcc/cp/init.c
gcc/cp/pt.c

index e2104ce5d4943bed70406c7b0222229c3196d8cd..ee68dfc1b483b053138b9e825bbf4dee2e61b52e 100644 (file)
@@ -1836,6 +1836,7 @@ build_offset_ref (type, name)
   tree basebinfo = NULL_TREE;
   int dtor = 0;
 
+  /* class templates can come in as TEMPLATE_DECLs here.  */
   if (TREE_CODE (name) != IDENTIFIER_NODE)
     return name;
 
index a64fe4cc5a6a965c756d5987bdd620d11ba864d3..fe66bf43b47cf9b05c8d8601c351c4753d11ee9c 100644 (file)
@@ -107,6 +107,7 @@ finish_member_template_decl (template_parameters, decl)
     return NULL_TREE;
   else if (TREE_CODE (decl) == TREE_LIST)
     {
+      /* Assume that the class is the only declspec.  */
       decl = TREE_VALUE (decl);
       if (IS_AGGR_TYPE (decl) && CLASSTYPE_TEMPLATE_INFO (decl))
        {
@@ -2958,6 +2959,7 @@ instantiate_class_template (type)
        template = DECL_TI_TEMPLATE (template);
     }
 
+  /* FIXME deal with partial specializations of member templates.  */
   t = most_specialized_class
     (DECL_TEMPLATE_SPECIALIZATIONS (template), args);
 
@@ -3615,6 +3617,7 @@ tsubst (t, args, in_decl)
        if (PRIMARY_TEMPLATE_P (t))
          TREE_TYPE (DECL_INNERMOST_TEMPLATE_PARMS (tmpl)) = tmpl;
 
+       /* FIXME deal with partial specializations.  */
        if (TREE_CODE (decl) == TYPE_DECL)
          return tmpl;