Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

clang HEAD 8.0.0 (https://github.com/llvm-mirror/clang.git 1c106b9cc9139bd49c1297cc9da4966b0c703cec) (https://github.com/llvm-mirror/llvm.git 62feeed8d73ada1cdccded61e84b8c5dda6e0ca4)

Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic

Author

anonymous

over 6 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-head/include -std=gnu++2a
prog.cc:8:18: warning: array index 6 is past the end of the array (which contains 5 elements) [-Warray-bounds]
    std::cout << array[6];
                 ^     ~
prog.cc:7:11: note: array 'array' declared here
void func(int(&array)[5]) {
          ^
prog.cc:15:24: error: implicit instantiation of undefined template 'TD<void (int (&)[5])>'
    TD<decltype(func)> td;
                       ^
prog.cc:12:8: note: template is declared here
struct TD;
       ^
1 warning and 1 error generated.
Exit Code:
1