Hi,
On 06/13/2014 07:39 PM, Jason Merrill wrote:
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".
But it doesn't work here, doesn't do anything fancy, it exactly prints
'v' and nothing else. That's why I'm puzzled... Maybe because these
aren't user-defined types? (I'm guessing)
Paolo.