[LLVMbugs] [Bug 9026] New: Assertion about "conversion sequence "
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jan 21 17:34:32 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9026
Summary: Assertion about "conversion sequence "
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Clang fails on
------------------------
class InfallibleTArray {
};
class Variant;
class CompVariant {
operator const InfallibleTArray&() const;
};
class Variant {
operator const CompVariant&() const;
};
void Write( const Variant& __v);
void Write( const InfallibleTArray& __v);
Variant x;
void Write2() {
Write(x);
}
------------------------
with
Assertion failed: (false && "Can only end up with a standard conversion
sequence or failure"), function AddConversionCandidate, file
/Users/espindola/llvm/clang/lib/Sema/SemaOverload.cpp, line 4024.
0 clang 0x0000000101001992 PrintStackTrace(void*) + 34
1 clang 0x0000000101001f39 SignalHandler(int) + 857
2 libSystem.B.dylib 0x00007fff80ed867a _sigtramp + 26
3 clang 0x00000001005be33a
clang::CXXBasePaths::lookupInBases(clang::ASTContext&, clang::CXXRecordDecl
const*, bool (*)(clang::CXXBaseSpecifier const*, clang::CXXBasePath&, void*),
void*) + 234
4 clang 0x0000000100019e26 abort + 22
5 clang 0x0000000100019de8 __assert_rtn + 56
6 clang 0x00000001003b0ea2
clang::Sema::AddConversionCandidate(clang::CXXConversionDecl*,
clang::DeclAccessPair, clang::CXXRecordDecl*, clang::Expr*, clang::QualType,
clang::OverloadCandidateSet&) + 2178
7 clang 0x00000001003c5f97
clang::FindConversionForRefInit(clang::Sema&,
clang::ImplicitConversionSequence&, clang::QualType, clang::Sou
--
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