[llvm-bugs] [Bug 24987] New: spec cpu2006 benchmark 400 perlbench : compiler segfaults with O3 flto

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 29 11:32:44 PDT 2015


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

            Bug ID: 24987
           Summary: spec cpu2006 benchmark 400 perlbench : compiler
                    segfaults with O3 flto
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: santosh.zanjurne at amd.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

While building 400 perlbench, compiler aborts with following assertion.

ld: /local/home/qa/santosh/llvm/trunk/llvm/include/llvm/Support/Casting.h:237:
typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X =
llvm::IntegerType; Y = llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type =
llvm::IntegerType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of
incompatible type!"' failed.

Flag set - O3 flto

I think the above regression started from svn r248606

-- 
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/20150929/55c813d2/attachment.html>


More information about the llvm-bugs mailing list