Commit 7c8b00f9 by Jason Merrill Committed by Jason Merrill

* error.c (dump_decl): Do say "typedef" for the injected class name.

From-SVN: r148916
parent fdfacfa1
2009-06-24 Jason Merrill <jason@redhat.com>
* error.c (dump_decl): Do say "typedef" for the injected class name.
* pt.c (lookup_template_class): Use currently_open_class,
compare template args later.
......
......@@ -862,7 +862,7 @@ dump_decl (tree t, int flags)
{
case TYPE_DECL:
/* Don't say 'typedef class A' */
if (DECL_ARTIFICIAL (t))
if (DECL_ARTIFICIAL (t) && !DECL_SELF_REFERENCE_P (t))
{
if ((flags & TFF_DECL_SPECIFIERS)
&& TREE_CODE (TREE_TYPE (t)) == TEMPLATE_TYPE_PARM)
......
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