diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7c892d42c0b..40ee48333eb 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Fri Mar 27 20:23:18 1998 Mark Mitchell + + * error.c (dump_decl): Be a bit more explicit with template + type arguments, when verbose. + Fri Mar 27 18:16:40 1998 Jason Merrill * inc/exception: Reorder closing braces. 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; }