[llvm-bugs] [Bug 26444] New: [Regression] Clang crashes on structs with large alignment

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 2 14:10:12 PST 2016


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: unassignedclangbugs at nondot.org
          Reporter: Yunzhong_Gao at playstation.sony.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160202/77eb614c/attachment.html>


More information about the llvm-bugs mailing list