This is the mail archive of the
mailing list for the GCC project.
how to get the field_id for member of structure in gcc front end
- From: "Tianwei Sheng" <tianwei dot sheng at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 29 Mar 2006 14:48:57 +0800
- Subject: how to get the field_id for member of structure in gcc front end
for the following statement, how can I get the field_id info for
the structure member
int * p = &pair.a;
It seems that we can't get the field_id info because of address taken
operator. it treats the "&pair.a" as "&pair + ofset of a".
I am not familiar with the gcc tree. any one know this?