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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs