On 06/13/2014 01:02 PM, Paolo Carlini wrote:
Don't strip_typedefs; the error message should name the typedef.
But then, are we going to just print 'v'?!? We want "typedef-name for
type 'v'"?!? We already have the caret exactly below the 'v'... Please
clarify which exact message you want to see.
Maybe both:
"invalid use of typedef-name %qT for type %qT in parameter
declaration", type, strip_typedefs (type));
type_as_string already deals with printing what a typedef resolves to,
so we don't need to handle that here. Just "invalid use of typedef-name
%qT in parameter declaration".
Jason