https://bugs.llvm.org/show_bug.cgi?id=49928
Bug ID: 49928
Summary: non-empty struct size is 1
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++2b
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
This program compiles with clang-13, but not with gcc, one of the two has it
wrong, also the struct is not empty:
#include <iostream>
int main()
{
struct S
{
int; char; double;
};
std::cout << sizeof(S) << std::endl;
return 0;
}
https://wandbox.org/permlink/e11FkS0WeOoEiF5j
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs