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

             Bug #: 11795
           Summary: Clang accepts direct constructor call
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Clang (incorrectly?) accepts:

struct A { A (); A (int); int i; };
A::A (int x) { A::A (); i = x; }

GCC 4.5 and above rejects this with the error:

cannot call constructor directly

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