https://llvm.org/bugs/show_bug.cgi?id=26444

            Bug ID: 26444
           Summary: [Regression] Clang crashes on structs with large
                    alignment
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangb...@nondot.org
          Reporter: yunzhong_...@playstation.sony.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Hi,

Clang 3.8 (and trunk) crashes on the following test case, but clang 3.7.1 works
fine.

$ cat align.cc
struct A {
  A();
} a __attribute__((aligned(0x10000)));

$ clang --version
clang version 3.9.0 (trunk 259447)
Target: x86_64-unknown-linux-gnu

$ clang -S -o - align.cc
clang: Address.h:32: clang::CodeGen::Address::Address(llvm::Value*,
clang::CharUnits): Assertion `(!alignment.isZero() || pointer == nullptr) &&
"creating valid address with invalid alignment"' failed.

Could someone take a look?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to