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

             Bug #: 13740
           Summary: MS compatibility: support for extended user-defined
                    conversion sequences
           Product: clang
           Version: 3.1
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


vs10 (and likely all older, since this is used by MFC headers) allows
conversion sequences to contain user-defined conversion operator followed by a
user-defined constructor. The following, for example, compiles cleanly.

    struct A {
        operator int();
    };

    struct B {
        B(int);
    };

    void foo() {
        A a;
        B b = a;
    }

clang should allow this when -fms-compatibility is in effect.

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