| Issue |
159531
|
| Summary |
[Clang] Layout of struct with [[msvc::no_unique_address]] is different from MSVC
|
| Labels |
clang:frontend,
ABI
|
| Assignees |
|
| Reporter |
philnik777
|
```
struct S {};
struct T {
[[msvc::no_unique_address]] S s;
};
struct V {};
struct W : T, V {};
static_assert(sizeof(W) == 1);
```
MSVC is happy with this code while Clang thinks `sizeof(W)` should be 2.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs