Language
C++
Compiler
gcc 9.2.0
Options
Warnings
Boost 1.72.0
C++17
no pedantic
Raw compiler options
-Werror=vla
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-9.2.0/include -std=c++17 -Werror=vla
Exit Code:
1
Author
anonymous
about 5 years ago
C++
gcc 9.2.0
Author
anonymous
about 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-9.2.0/include -std=c++17 -Werror=vla
prog.cc: In function 'int main()':
prog.cc:4:9: error: variable length array 'bar' is used [-Werror=vla]
4 | int bar[foo];
| ^~~
prog.cc:4:9: warning: unused variable 'bar' [-Wunused-variable]
cc1plus: some warnings being treated as errors