This is the mail archive of the gcc-patches@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]

Re: fix c/17396


Richard Henderson wrote:

> I don't really like adding back support for this idiom, but the only
> Correct Solution I can think of involves proper support for integer
> constant expressions in the C front end.

What about an inconditional (ped)warn asking the user to use the official
offsetof()?

Giovanni Bajo



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