[llvm-bugs] [Bug 50221] New: clang does not respect alignas
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 4 13:30:32 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50221
Bug ID: 50221
Summary: clang does not respect alignas
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: vitalybuka at google.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
https://godbolt.org/z/b8nqodchG
#include <stdio.h>
struct alignas(4096) AAA {
int x;
struct alignas(4096) SizeClassInfo {
};
SizeClassInfo aa;
int y;
};
void* p;
int s = sizeof(AAA);
int main() {
p = new AAA();
printf("%p\n", p);
}
--
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/20210504/61463a39/attachment.html>
More information about the llvm-bugs
mailing list