Commit b7a29012 by Jason Merrill

tweak

From-SVN: r17469
parent 19428ce4
...@@ -4499,8 +4499,7 @@ finish_struct (t, list_of_fieldlists, attributes, warn_anon) ...@@ -4499,8 +4499,7 @@ finish_struct (t, list_of_fieldlists, attributes, warn_anon)
TYPE_BEING_DEFINED (t) = 0; TYPE_BEING_DEFINED (t) = 0;
/* Now, figure out what any member template specializations were /* Now, figure out which member templates we're specializing. */
specializing. */
for (x = specializations; x != NULL_TREE; x = TREE_CHAIN (x)) for (x = specializations; x != NULL_TREE; x = TREE_CHAIN (x))
{ {
tree spec_args; tree spec_args;
......
...@@ -250,11 +250,13 @@ dump_type (t, v) ...@@ -250,11 +250,13 @@ dump_type (t, v)
arg = TREE_VALUE (arg); arg = TREE_VALUE (arg);
if (TREE_CODE (arg) == TYPE_DECL) if (TREE_CODE (arg) == TYPE_DECL)
{ {
OB_PUTS ("class ");
if (DECL_NAME (arg)) if (DECL_NAME (arg))
OB_PUTID (DECL_NAME (arg)); {
OB_PUTS ("class ");
OB_PUTID (DECL_NAME (arg));
}
else else
OB_PUTS ("{anon}"); OB_PUTS ("class");
} }
else else
dump_decl (arg, 1); dump_decl (arg, 1);
...@@ -821,11 +823,13 @@ dump_decl (t, v) ...@@ -821,11 +823,13 @@ dump_decl (t, v)
arg = TREE_VALUE (arg); arg = TREE_VALUE (arg);
if (TREE_CODE (arg) == TYPE_DECL) if (TREE_CODE (arg) == TYPE_DECL)
{ {
OB_PUTS ("class ");
if (DECL_NAME (arg)) if (DECL_NAME (arg))
OB_PUTID (DECL_NAME (arg)); {
OB_PUTS ("class ");
OB_PUTID (DECL_NAME (arg));
}
else else
OB_PUTS ("{anon}"); OB_PUTS ("class");
} }
else else
dump_decl (arg, 1); dump_decl (arg, 1);
......
...@@ -3077,9 +3077,8 @@ tsubst (t, args, nargs, in_decl) ...@@ -3077,9 +3077,8 @@ tsubst (t, args, nargs, in_decl)
{ {
/* We are processing a type constructed from /* We are processing a type constructed from
a template template parameter */ a template template parameter */
tree argvec = tsubst ( tree argvec = tsubst (CLASSTYPE_TI_ARGS (t),
TREE_VALUE (CLASSTYPE_TEMPLATE_INFO (t)), args, nargs, in_decl);
args, nargs, in_decl);
tree r; tree r;
/* We can get a TEMPLATE_TEMPLATE_PARM here when /* We can get a TEMPLATE_TEMPLATE_PARM here when
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment