[LLVMbugs] [Bug 12224] New: Inherited constructor implementation is completely broken

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 9 18:10:48 PST 2012


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

             Bug #: 12224
           Summary: Inherited constructor implementation is completely
                    broken
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Testcase:

template<typename T> struct A { A(int) { *(T)0; } virtual ~A(); };
struct B : A<int> { using A::A; ~B(); };
B b(10); 

This should clearly give an error; we don't give an error because we never
actually synthesize a definition for B::B(int).

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