diff options
author | Gabriel Dos Reis <gdr@merlin.codesourcery.com> | 2002-03-23 03:17:43 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2002-03-23 03:17:43 +0000 |
commit | ea9264e9a27d12c50efe395574e96b9c3dc54436 (patch) | |
tree | 6a1ffa614f9b16a6e01341163c8d67926e23cfa3 | |
parent | 1f3a2ce1db6d3269d324b21faa3bb301b298b0b9 (diff) | |
download | gcc-ea9264e9a27d12c50efe395574e96b9c3dc54436.zip gcc-ea9264e9a27d12c50efe395574e96b9c3dc54436.tar.gz gcc-ea9264e9a27d12c50efe395574e96b9c3dc54436.tar.bz2 |
* error.c (dump_type): Be careful about implicit typenames.
From-SVN: r51219
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/error.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 42c2e9bf..dd97e04 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 077181f..812def9 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; |