http://llvm.org/bugs/show_bug.cgi?id=10785
Summary: crash on invalid use of variable of type "const T&"
where T = an unbound method
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
clang++ -fsyntax-only test.cc crashes on this invalid code:
struct Class {
void method();
};
template<typename T> struct Helper {
virtual void helper(T x) {
x;
}
};
struct FunctionLike {
template<typename T> void operator()(const T&) {
Helper<const T&> helper;
}
};
void TestBody() {
Class cls;
FunctionLike fl;
fl(cls.method);
}
with this assertion:
clang: SemaExpr.cpp:9968: clang::ExprResult
clang::Sema::CheckPlaceholderExpr(clang::Expr*): Assertion
`!type->isPlaceholderType()' failed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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