[Bug c++/72580] Cannot throw non movable object
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 26 11:40:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72580
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |INVALID
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Gleb Natapov from comment #2)
> As far as I see it talks about copy constructor not move constructor.
No, it says "the constructor" not "the copy constructor".
Copy initialization refers to the syntactic form of initialization, not whether
it uses a copy constructor or a move constructor.
It also specifically talks about "the copy/move operation".
> Clang
> compiles the code just fine.
And Intel icc rejects it for using a deleted function.
More information about the Gcc-bugs
mailing list