Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 2 years ago

Language

C++

Compiler

clang HEAD 18.0.0 (https://github.com/llvm/llvm-project.git d8ae3a9b2533fbd11c0be6aaf66c16fb2b918f2a)

Options
Warnings
Don't Use Boost
C++2b
-pedantic-errors
Raw compiler options
-Wno-unused

Author

anonymous

over 2 years ago

$ clang++ prog.cc -Wall -Wextra -std=c++2b -pedantic-errors -Wno-unused
prog.cc:7:15: error: variable length arrays are a C99 feature [-Werror,-Wvla-extension]
    7 |     int array[a.a0];
      |               ^~~~
prog.cc:7:15: note: read of non-constexpr variable 'a' is not allowed in a constant expression
prog.cc:6:7: note: declared here
    6 |     A a{};
      |       ^
1 error generated.
Exit Code:
1