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