[Bug c++/66256] noexcept evaluation done before end of class

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 24 11:10:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66256

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
   Last reconfirmed|2017-02-14 00:00:00         |2017-4-24
                 CC|                            |redi at gcc dot gnu.org

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Accepts invalid testcase for the issue mentioned in comment 1:

void swap(int&, int&);

int& get();

struct pair {
  void swap(pair&) noexcept(noexcept(swap(get(), get()))) { }
};


More information about the Gcc-bugs mailing list