[LLVMbugs] [Bug 14588] New: Assertion failure with C++11 delegating constructor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 12 12:55:35 PST 2012


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



More information about the llvm-bugs mailing list