aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2009-06-24 14:47:43 -0400
committerJason Merrill <jason@gcc.gnu.org>2009-06-24 14:47:43 -0400
commit7c8b00f92c96d0ec9c306d4ba767c1ad941024e6 (patch)
tree3204a4f323bdb65bf2c2d95c0ce8979bdc137807 /gcc/cp/error.c
parentfdfacfa112fbcd65ee32183ce54327e0ed20ef0b (diff)
downloadgcc-7c8b00f92c96d0ec9c306d4ba767c1ad941024e6.zip
gcc-7c8b00f92c96d0ec9c306d4ba767c1ad941024e6.tar.gz
gcc-7c8b00f92c96d0ec9c306d4ba767c1ad941024e6.tar.bz2
* error.c (dump_decl): Do say "typedef" for the injected class name.
From-SVN: r148916
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 7be241d..98dacb1 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -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)