Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 2 years ago

Language

C++

Compiler

gcc 9.3.0

Options
Don't Use Boost
C++2a(GNU)
no pedantic
Raw compiler options
-O2 -Wnull-dereference

Author

anonymous

over 2 years ago

$ g++ prog.cc -std=gnu++2a -O2 -Wnull-dereference
prog.cc: In function 'int main()':
prog.cc:8:35: warning: null pointer dereference [-Wnull-dereference]
    8 |     if (d) static_cast<IF*>(d)->g();
      |                                   ^
Exit Code:
0