http://llvm.org/bugs/show_bug.cgi?id=8033
Summary: clang c++ assertion "no most-specialized template"
with ambiguous template overloads
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Testcase:
template <typename T1, typename T2> int f(T1 *, const T2 *);
template <typename T1, typename T2> int f(const T1 *, T2 *);
int (*p)(const int *, const int *) = f;
Crashes with:
clang: SemaOverload.cpp:6386: clang::FunctionDecl*
clang::Sema::ResolveAddressOfOverloadedFunction(clang::Expr*, clang::QualType,
bool, clang::DeclAccessPair&): Assertion `Result != MatchesCopy.end() && "no
most-specialized template"' 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