[LLVMbugs] [Bug 17376] initialization list with conversion operator dont work properly and report error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 30 13:10:22 PDT 2013


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
You can't use braced initialization for this conversion. Per [over.best.ics]p4:

"when considering the argument of a constructor [...] that is a candidate [...]
by 13.3.1.7 when [...] the initializer list has exactly one element and a
conversion to some class X [...] is considered for the first parameter of a
constructor of X, [...] only standard conversion sequences and ellipsis
conversion sequences are considered."

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131030/dddd7bef/attachment.html>


More information about the llvm-bugs mailing list