http://llvm.org/bugs/show_bug.cgi?id=8739
Summary: Assertion `DerivationOkay && "Can only be used with a
derived-to-base conversion"'
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]
Assertion fails in trunk, but works in 2.8:
class BSplitView {};
class BView {};
template<typename ParentBuilder> class Base;
template<typename ParentBuilder>
class Split : public Base<ParentBuilder> {
public:
typedef Split<ParentBuilder> ThisBuilder;
ThisBuilder& GetView(BView** _view);
private:
BSplitView* fView;
};
template<typename ParentBuilder>
typename Split<ParentBuilder>::ThisBuilder&
Split<ParentBuilder>::GetView(BView** _view)
{
*_view = fView;
return *this;
}
--
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