[Bug c++/59526] [C++11] Defaulted special member functions don't accept noexcept if a member has a non-trivial noexcept operator in the corresponding special member function

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Feb 9 15:11:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59526

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-02-09
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Trunk doesn't give the same errors, but fails two of the assertions:

n.cc:30:1: error: static assertion failed: 
 static_assert(std::is_nothrow_constructible<X>::value, "");
 ^
n.cc:31:1: error: static assertion failed: 
 static_assert(std::is_nothrow_move_assignable<X>::value, "");
 ^



More information about the Gcc-bugs mailing list