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] |
If you built an AST that included sizeof before doing template instantiation (which may not even be possible), you could at least determine whether sizeof was used on a given type other than in a malloc/new call (which we replace anyway).
struct S a[3]; struct S* p = &a[0]; /* This points at a[1]. */ struct S* q = ((char *)p) + 12;
-- Mark Mitchell CodeSourcery mark@codesourcery.com (650) 331-3385 x713
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |