[llvm-bugs] [Bug 26599] New: Assertion failed: ((E->getType()->isAnyPointerType() || E->getType()->isBlockPointerType() || E->getType()->isObjCQualifiedIdType() || E->getType()->isNullPtrType())), function EvalAddr, file ../../tools/clang/lib/SemaChecking.cpp:5938

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Feb 12 17:39:47 PST 2016


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

            Bug ID: 26599
           Summary: Assertion failed: ((E->getType()->isAnyPointerType()
                    || E->getType()->isBlockPointerType() ||
                    E->getType()->isObjCQualifiedIdType() ||
                    E->getType()->isNullPtrType())), function EvalAddr,
                    file ../../tools/clang/lib/SemaChecking.cpp:5938
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: compnerd at compnerd.org
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15897
  --> https://llvm.org/bugs/attachment.cgi?id=15897&action=edit
reduced.cpp

SemaChecking is too aggressive about the checked type for the return to ensure
that it is not a stack allocated value.  EvalAddr may be called on a
non-pointer type expression resulting in an assertion.

-- 
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/20160213/7a27ad06/attachment.html>


More information about the llvm-bugs mailing list