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

From-SVN: r148916
This commit is contained in:
Jason Merrill 2009-06-24 14:47:43 -04:00 committed by Jason Merrill
parent fdfacfa112
commit 7c8b00f92c
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
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.

View File

@ -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)