commit 16136651e85c19a1e8338a0bd1b2b1a453413c23 Author: Jason Merrill Date: Tue Jun 14 09:43:25 2011 -0400 * error.c (type_to_string): Print typedef-stripped version too. 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); }