[LLVMbugs] [Bug 8739] New: Assertion `DerivationOkay && "Can only be used with a derived-to-base conversion"'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Dec 5 10:20:43 PST 2010


           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: unassignedclangbugs at nondot.org
        ReportedBy: grzegorz.dabrowski at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

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> {
    typedef Split<ParentBuilder>    ThisBuilder;
    ThisBuilder&        GetView(BView** _view);
    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.

More information about the llvm-bugs mailing list