[LLVMbugs] [Bug 14488] Wrong private constructor selected during compilation

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 3 11:00:18 PST 2012


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

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 #7 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-12-03 13:00:18 CST ---
This is flat-out ill-formed (not implementation-defined). We're required to
reject this whether or not we actually perform copy-elision. See
[class.copy]p32: "This two-stage overload resolution must be performed
regardless of whether copy elision will occur. It determines the constructor to
be called if elision is not performed, and the selected constructor must be
accessible even if the call is elided."

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