https://bugs.llvm.org/show_bug.cgi?id=48890
Bug ID: 48890
Summary: Incorrect alignment of __attribute__((aligned)) enum
Product: clang
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Consider
enum __attribute__((aligned(8))) E {
A = 1,
};
int g(void) {
return _Alignof(enum E);
}
gcc returns 4, clang returns 8 on x86_64-unknown-linux-gnu. Gcc appears to
ignored this attribute on enums.
--
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