[Bug c++/107527] warning: declaration of ‘void operator delete(void*, std::size_t)’ has a different exception specifier [-Wsystem-headers]

2025-05-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107527

Jonathan Wakely  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
   Target Milestone|--- |15.0
 Resolution|--- |FIXED
   Last reconfirmed||2025-5-29

--- Comment #2 from Jonathan Wakely  ---
Fixed by r15-3532:

  c++: exception spec and stdlib specialization
  We were silently accepting the pr65923.C specialization of std::swap with
  the wrong exception specification; it should be declared noexcept.  Let's
  limit ignoring mismatch with system headers to extern "C" functions so we
  get a diagnostic for the C++ library.

[Bug c++/107527] warning: declaration of ‘void operator delete(void*, std::size_t)’ has a different exception specifier [-Wsystem-headers]

2022-11-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107527

--- Comment #1 from Andrew Pinski  ---
I thought I had saw this one before. Specifically something related to Darwin.