diff options
author | Jason Merrill <jason@redhat.com> | 2011-06-14 14:16:16 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-06-14 14:16:16 -0400 |
commit | 8722cdee157d283ec550b205a47c5795e6806b18 (patch) | |
tree | 4acec531142e79dc4f6ea68e7bf0905dab2cccd8 /gcc | |
parent | 84f32ce3b24cd508e9a4b3b4d716ab7fc293fba1 (diff) | |
download | gcc-8722cdee157d283ec550b205a47c5795e6806b18.zip gcc-8722cdee157d283ec550b205a47c5795e6806b18.tar.gz gcc-8722cdee157d283ec550b205a47c5795e6806b18.tar.bz2 |
* error.c (type_to_string): Print typedef-stripped version too.
From-SVN: r175045
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/cp/error.c | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0fc8eab..ef71b69 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2011-06-14 Jason Merrill <jason@redhat.com> + * error.c (type_to_string): Print typedef-stripped version too. + PR c++/49117 * call.c (perform_implicit_conversion_flags): Print source type as well as expression. diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 96796c2..22470dc 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -2632,6 +2632,15 @@ type_to_string (tree typ, int verbose) reinit_cxx_pp (); dump_type (typ, flags); + if (typ && TYPE_P (typ) && typ != TYPE_CANONICAL (typ) + && !uses_template_parms (typ)) + { + tree aka = strip_typedefs (typ); + pp_string (cxx_pp, " {aka"); + pp_cxx_whitespace (cxx_pp); + dump_type (aka, flags); + pp_character (cxx_pp, '}'); + } return pp_formatted_text (cxx_pp); } |