[LLVMbugs] [Bug 13740] New: MS compatibility: support for extended user-defined conversion sequences

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 31 07:16:26 PDT 2012


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



More information about the llvm-bugs mailing list