* error.c (dump_decl): Do say "typedef" for the injected class name.
From-SVN: r148916
This commit is contained in:
parent
fdfacfa112
commit
7c8b00f92c
@ -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.
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user