Language
C++
Compiler
gcc HEAD 13.0.0 20220501 (experimental)
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
almost 4 years ago
C++
gcc HEAD 13.0.0 20220501 (experimental)
Author
anonymous
almost 4 years ago
$ g++ prog.cc -Wall -Wextra -std=c++17 -pedantic-errors prog.cc:6:6: error: 'i' in 'struct Foo' does not name a type
6 | Foo::i;
| ^
prog.cc:3:16: note: 'Foo::i' declared here
3 | static int i;
| ^