[C++ Patch] PR 33101

Paolo Carlini paolo.carlini@oracle.com
Fri Jun 13 17:05:00 GMT 2014


On 06/13/2014 06:59 PM, Paolo Carlini wrote:
> Hi,
>
> On 06/13/2014 06:49 PM, Jason Merrill wrote:
>> On 06/13/2014 12:42 PM, Paolo Carlini wrote:
>>> +              "invalid use of typedef-name for type %qT in "
>>> +              "parameter declaration", strip_typedefs (type));
>>
>> 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));

??

Paolo.



More information about the Gcc-patches mailing list