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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
int d = __builtin_offsetof(struct T { void foo (); }, foo);
also emits
error: cannot apply ‘offsetof’ to member function ‘T::foo()’

Reply via email to