finding an original typedef decl from a reference

IainS developer@sandoe-acoustics.co.uk
Mon Apr 19 14:31:00 GMT 2010


On 19 Apr 2010, at 14:18, Manuel López-Ibáñez wrote:

> On 19 April 2010 15:03, IainS <developer@sandoe-acoustics.co.uk>  
> wrote:
>>
>> consider :
>>
>> typedef int INT1 ;
>>
>> int func (INT1 x) ;
>>
>> ----
>>
>> now if I am in grokparms()  parsing "INT1 x " and I want to issue a  
>> nice
>> diagnostic for x...
>
> Can I ask what you mean by a nice diagnostic? and what you want to  
> use this for?

nice ; including the expand_loc for INT1 and any attributes attached  
to the decl.

use ; I'm working on __attribute__((deprecated)) issues ...

(at the moment the diagnostic for x does not include the declaration  
location).

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43778 and
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43797
and the earlier thread on patches.
http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01037.html
and a followup:
http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01092.html

All this as a prelude to trying to introduce  
__attribute__((unavailable)) which is needed to progress ObjC to  
Version 1.

Iain



More information about the Gcc mailing list