Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 5 years ago

Language

C++

Compiler

clang HEAD 11.0.0 (https://github.com/llvm/llvm-project.git a378c0449507e00e96534ff9ce9034e185425182)

Options
Warnings
Don't Use Boost
Compiler Default
no pedantic

Author

anonymous

almost 5 years ago

$ clang++ prog.cc -Wall -Wextra
prog.cc:5:23: error: constexpr variable 'y' must be initialized by a constant expression
        constexpr const int* y = arrs + 11;
                             ^   ~~~~~~~~~
prog.cc:5:32: note: cannot refer to element 11 of array of 10 elements in a constant expression
        constexpr const int* y = arrs + 11;
                                      ^
1 error generated.
Exit Code:
1