[LLVMbugs] [Bug 12139] CLANG copy ctor with default arguments disregard passed-in arguments when invoked with an Rvalue source object

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 9 22:54:42 PST 2012


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

Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Douglas Gregor <dgregor at apple.com> 2012-03-10 00:54:42 CST ---
(In reply to comment #3)
> Reopening this bug as the fact that a copy constructor is being called is
> irrelevant if the construction is not, in fact, copy construction. p31 is
> applicable only during copy/move construction. See also CWG535 [1] which
> clarifies that elision can be applied to constructors other than copy and move
> constructors if they are selected to perform a copy or move operation, and was
> applied to the working draft at Kona.
> 
> [1]: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3330.html#535

Sean makes a good point. Fixed in Clang r152485.

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