Does even a single g++ flag warn about nullpointer dereferencing?

Advertisements I wanted to check whether a g++ compiler-flag exists that warns me about nullpointer-dereferencing. When compiling this code with g++ (GCC) 13.1.1 and these compiler flags: -Wnull-dereference, -Wnonnull, still nothing happens. No warning, no error.. #include <iostream> auto main([[maybe_unused]] int argc, [[maybe_unused]] char ** argv) -> int { double *elem = new (std::nothrow) double;… Read More Does even a single g++ flag warn about nullpointer dereferencing?