https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112681
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Doesn't need the virtual method nor C++: struct S { void *c; char d[16]; } a, b; int foo (void) { return __builtin_memcmp (a.d, b.d, sizeof (a.d)) != 0; }