https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111742
--- Comment #2 from Chris Uzdavinis <cuzdav at gmail dot com> --- No, this is not a ubsan report. Code *crashes* and I thought showing the UBsan warning was enough to demonstrate it. A minimal change to make the code crash instead of just report ubsan errors: struct X { void * a = nullptr; void * b = nullptr; }; struct alignas(16) AlignedData { }; struct A : virtual AlignedData { int x = 0; // << ********add this X xxx; int& ref = x; // << ********and this }; struct B : virtual AlignedData {}; struct Test : B, A {}; Test* t = new Test; int main() {} *** SEGFAULT *** https://godbolt.org/z/f57vs7jxP