[llvm-bugs] [Bug 49928] New: non-empty struct size is 1
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Apr 11 18:20:56 PDT 2021
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: unassignedclangbugs at nondot.org
Reporter: janezz55 at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210412/f23a00d0/attachment.html>
More information about the llvm-bugs
mailing list