summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/error.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 42c2e9bf169..dd97e041309 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-23 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
+
+ * error.c (dump_type): Be careful about implicit typenames.
+
2002-03-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
PR C++/3656
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 077181f7dd7..812def9f382 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -459,7 +459,8 @@ dump_type (t, flags)
break;
}
case TYPENAME_TYPE:
- output_add_string (scratch_buffer, "typename ");
+ if (!IMPLICIT_TYPENAME_P (t))
+ output_add_string (scratch_buffer, "typename ");
dump_typename (t, flags);
break;