You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structA {};
structB {
[[msvc::no_unique_address]] A val;
};
structC : B {
char x;
};
static_assert(sizeof(C) == 1); // clang-cl thinks sizeof(C) is 2, while it should be 1
When the standard [[no_unique_address]] is used in regular mode, the memory layout of C is expected.