This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/72580] Cannot throw non movable object


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]