tweak
authorJason Merrill <jason@gcc.gnu.org>
Sat, 24 Jan 1998 03:04:11 +0000 (22:04 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 24 Jan 1998 03:04:11 +0000 (22:04 -0500)
From-SVN: r17469

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

index d2cb7ae3cd4a4d570e7c2bce2a13c35ad6819df0..4ed1656b02482009d7779f47b48b88d7a8def73f 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 f6acd4b0c243cfd94b6698390aadfeefe8a46ab9..2cc5c84d765e01991944f45058296b111574f501 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 4e631ca22566d1a261cb2a0e5bf9f7c0b1f537e6..7f32c4f7903541e8ff7ef697dc8376253c22d016 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