[LLVMbugs] [Bug 20988] New: crash calling enable_if'd function with a reference in a function template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 17 16:26:46 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20988

            Bug ID: 20988
           Summary: crash calling enable_if'd function with a reference in
                    a function template
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Testcase requires -std=c++11:

struct Integer {
  Integer(int);
};
int fn1(const Integer &) __attribute__((enable_if(true, "")));
template <class T> void test() {
  int &expr = T::expr();
  fn1(expr);
}

clang: ExprConstant.cpp:8129: bool EvaluateInPlace(clang::APValue&,
{anonymous}::EvalInfo&, const {anonymous}::LValue&, const clang::Expr*, bool):
Assertion `!E->isValueDependent()' failed.

-- 
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/20140917/dc8ab327/attachment.html>


More information about the llvm-bugs mailing list