aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index d97ed3804aa..e5dc73f0d5d 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -655,6 +655,10 @@ dump_decl (t, v)
/* Don't say 'typedef class A' */
if (DECL_ARTIFICIAL (t))
{
+ if (v > 0 && TREE_CODE (TREE_TYPE (t)) == TEMPLATE_TYPE_PARM)
+ /* Say `class T' not just `T'. */
+ OB_PUTS ("class ");
+
dump_type (TREE_TYPE (t), v);
break;
}