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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to