http://llvm.org/bugs/show_bug.cgi?id=14588

             Bug #: 14588
           Summary: Assertion failure with C++11 delegating constructor
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


with this test case:
-------------
class Base
{
public:
      Base();
 virtual ~Base();
};

class Foo : public virtual Base
{
public:
Foo();
Foo(const void * inVoid);
virtual ~Foo();
};

Foo::Foo() : Foo(__null) {}// delegated constructor N1986
Foo::Foo(const void *inVoid) {}
-------------

$ clang -cc1 test.cpp -emit-llvm -o - -std=c++11
will hit an assertion:
Assertion failed: (!CodeGenVTables::needsVTTParameter(CGF.CurGD) && "doing
no-op VTT offset in base dtor/ctor?"), function GetVTTParameter, file
clang/lib/CodeGen/CGClass.cpp, line 302.

-- 
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

Reply via email to