[LLVMbugs] [Bug 8033] New: clang c++ assertion "no most-specialized template" with ambiguous template overloads
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Aug 30 17:05:11 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list