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 libstdc++/51452] has_nothrow_.*constructor bugs


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

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-09 16:02:11 UTC ---
Corrected testcase:

  struct X
  {
      X() noexcept;
      ~X() noexcept(false);
  };

  static_assert( noexcept( X() ), "fails because of ~X" );
  static_assert( noexcept(new (nullptr) X()), "works" );


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