Language
C++
Compiler
clang 13.0.0
Options
Warnings
Boost 1.78.0
C++17
-pedantic
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.78.0-clang-13.0.0/include -std=c++17 -pedantic Signal: 
Segmentation fault
Author
anonymous
over 3 years ago
C++
clang 13.0.0
Author
anonymous
over 3 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.78.0-clang-13.0.0/include -std=c++17 -pedantic prog.cc:19:5: warning: variable 'tag1' is uninitialized when used here [-Wuninitialized]
    tag1->tag_name = "tag1";
    ^~~~
prog.cc:18:14: note: initialize the variable 'tag1' to silence this warning
    tag* tag1;
             ^
              = nullptr
1 warning generated.