[LLVMbugs] [Bug 12120] New: Clang ignores 'explicit' constructors in copy-list-initialization

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 28 14:03:34 PST 2012


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

             Bug #: 12120
           Summary: Clang ignores 'explicit' constructors in
                    copy-list-initialization
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: schaub.johannes at googlemail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


This initialization is ambiguous (could use either constructor by overload
resolution), but clang accepts it:

struct A { explicit A(int); A(float); }; 
A a = { 0 };

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