[LLVMbugs] [Bug 12118] New: Doesn't consider list initialization of "initializer_list<X>" as a tie-breaker

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 28 13:51:49 PST 2012


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

             Bug #: 12118
           Summary: Doesn't consider list initialization of
                    "initializer_list<X>" as a tie-breaker
           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


Clang gives an ambiguity for this:

void f(initializer_list<int>); 
void f(int); 
int main() { f({0}); }

However C++11 13.3.3.2p3 last bullet says that the list initialization sequence
of the first f is better than that for the second f.

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