OSDN Git Service

tweak
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Jan 1998 03:04:11 +0000 (03:04 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Jan 1998 03:04:11 +0000 (03:04 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17469 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/class.c
gcc/cp/error.c
gcc/cp/pt.c

index d2cb7ae..4ed1656 100644 (file)
@@ -4499,8 +4499,7 @@ finish_struct (t, list_of_fieldlists, attributes, warn_anon)
 
   TYPE_BEING_DEFINED (t) = 0;
 
-  /* Now, figure out what any member template specializations were
-     specializing.  */
+  /* Now, figure out which member templates we're specializing.  */
   for (x = specializations; x != NULL_TREE; x = TREE_CHAIN (x))
     {
       tree spec_args;
index f6acd4b..2cc5c84 100644 (file)
@@ -250,11 +250,13 @@ dump_type (t, v)
                arg = TREE_VALUE (arg);
                if (TREE_CODE (arg) == TYPE_DECL)
                  {
-                   OB_PUTS ("class ");
                    if (DECL_NAME (arg))
-                     OB_PUTID (DECL_NAME (arg));
+                     {
+                       OB_PUTS ("class ");
+                       OB_PUTID (DECL_NAME (arg));
+                     }
                    else
-                     OB_PUTS ("{anon}");
+                     OB_PUTS ("class");
                  }
                else
                  dump_decl (arg, 1);
@@ -821,11 +823,13 @@ dump_decl (t, v)
                arg = TREE_VALUE (arg);
                if (TREE_CODE (arg) == TYPE_DECL)
                  {
-                   OB_PUTS ("class ");
                    if (DECL_NAME (arg))
-                     OB_PUTID (DECL_NAME (arg));
+                     {
+                       OB_PUTS ("class ");
+                       OB_PUTID (DECL_NAME (arg));
+                     }
                    else
-                     OB_PUTS ("{anon}");
+                     OB_PUTS ("class");
                  }
                else
                  dump_decl (arg, 1);
index 4e631ca..7f32c4f 100644 (file)
@@ -3077,9 +3077,8 @@ tsubst (t, args, nargs, in_decl)
                      {
                        /* We are processing a type constructed from
                           a template template parameter */
-                       tree argvec = tsubst (
-                                       TREE_VALUE (CLASSTYPE_TEMPLATE_INFO (t)), 
-                                       args, nargs, in_decl);
+                       tree argvec = tsubst (CLASSTYPE_TI_ARGS (t),
+                                             args, nargs, in_decl);
                        tree r;
 
                        /* We can get a TEMPLATE_TEMPLATE_PARM here when