http://llvm.org/bugs/show_bug.cgi?id=12139
Douglas Gregor <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #4 from Douglas Gregor <[email protected]> 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. _______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
