[llvm-bugs] [Bug 36973] type conversion operator was not invoked during initialization

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Apr 1 22:12:00 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=36973

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

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

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Even though A is an aggregate, A{A()} calls the copy constructor rather than
initializing the first member from A() and the second from int{}. See:

http://eel.is/c++draft/dcl.init.list#3.2

-- 
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/20180402/8f8062dd/attachment.html>


More information about the llvm-bugs mailing list