This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

finding an original typedef decl from a reference



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...

I can't seem to find the right magic that gets me back to that DECL for INT1
(I actually want any attributes attached to it and an expand_location)..


any pointers to the correct macro or chain to follow...?

Iain


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]