https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66163

--- Comment #7 from Jan Hubicka <hubicka at ucw dot cz> ---
> According to -fsanitize=null, there are many places in Firefox that produce
> undefined behavior in followin way:
> 
> https://bugzilla.mozilla.org/show_bug.cgi?id=1165904
> 
> One common example:
> 
>     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?

Honza

Reply via email to