Language
C++
Compiler
clang 14.0.0
Options
Warnings
Boost 1.79.0
C++11
no pedantic
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.79.0-clang-14.0.0/include -std=c++11
Signal:
Segmentation fault
Author
anonymous
about 3 years ago
C++
clang 14.0.0
Author
anonymous
about 3 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.79.0-clang-14.0.0/include -std=c++11
prog.cc:11:12: warning: variable 'b' is uninitialized when used here [-Wuninitialized]
delete b;
^
prog.cc:10:9: note: initialize the variable 'b' to silence this warning
A *b;
^
= nullptr
1 warning generated.