https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66163
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at redhat dot com --- Comment #8 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Forgot to actually CC Jason, sorry for that. > static size_t offsetOfThis() { > JitFrameLayout* base = nullptr; > return reinterpret_cast<size_t>(&base->argv()[0]); > } Jason, just to double check, this is indeed an undefined and offsetof is usable only for POD?