Issue |
125863
|
Summary |
__datasizeof() does not ignore tail padding.
|
Labels |
new issue
|
Assignees |
|
Reporter |
IViktorov
|
```C++
#include <cstdint>
struct Tst {
std::uint32_t u1;
std::uint8_t u2;
};
static_assert(sizeof(Tst) == 8);
static_assert(__datasizeof(Tst) == 5);
```
`__datasizeof(Tst)` returns 8 instead of 5.
If I'm missing something and it should work that way, than it would be good to clarify that here: https://clang.llvm.org/docs/LanguageExtensions.html#implementation-defined-keywords
https://godbolt.org/z/ejPYcs8oq
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs