https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115792
eczbek.void at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eczbek.void at gmail dot com --- Comment #12 from eczbek.void at gmail dot com --- GCC recommends using `throw()` even though it's deprecated/removed: https://godbolt.org/z/v6q11zood > struct A { > void* operator new(decltype(sizeof(0))) { > return nullptr; > } > }; warning: 'operator new' must not return NULL unless it is declared 'throw()' (or '-fcheck-new' is in effect)