This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/72580] Cannot throw non movable object
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Jul 2016 11:40:07 +0000
- Subject: [Bug c++/72580] Cannot throw non movable object
- Auto-submitted: auto-generated
- References: <bug-72580-4@http.gcc.gnu.org/bugzilla/>
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.