* error.c (type_to_string): Print typedef-stripped version too.
From-SVN: r175045
This commit is contained in:
parent
84f32ce3b2
commit
8722cdee15
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user