Language
C++
Compiler
gcc 11.1.0
Options
Warnings
Don't Use Boost
C++17
-pedantic-errors
$ g++ prog.cc -Wall -Wextra  -std=c++17 -pedantic-errors Exit Code: 
1
Author
anonymous
over 4 years ago
C++
gcc 11.1.0
Author
anonymous
over 4 years ago
$ g++ prog.cc -Wall -Wextra  -std=c++17 -pedantic-errors prog.cc: In function 'int main()':
prog.cc:6:5: error: use of deleted function 'A::A()'
    6 |   A a;
      |     ^
prog.cc:1:8: note: 'A::A()' is implicitly deleted because the default definition would be ill-formed:
    1 | struct A {
      |        ^
prog.cc:1:8: error: uninitialized const member in 'struct A'
prog.cc:2:13: note: 'const int A::test_' should be initialized
    2 |   const int test_;
      |             ^~~~~
prog.cc:6:5: warning: unused variable 'a' [-Wunused-variable]
    6 |   A a;
      |     ^