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: [c++] fold offsetof by hand


Ziemowit Laski wrote:

> Is there a reason why OFFSETOF_EXPR can't live in c-common code, or
> even front-end-agnostic code?  Why confine this just to C++ templates?

Because it is the only place where we need to keep around such an expression?
In any other case, we can fold it down to a constant as soon as we parse it.

Giovanni Bajo



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