Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

clang 9.0.0

Options
Warnings
Boost 1.72.0
C++17
-pedantic-errors

Author

anonymous

over 5 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/clang-9.0.0/include -std=c++17 -pedantic-errors
prog.cc:6:9: warning: unused variable 'x' [-Wunused-variable]
    int x = {0, (std::cout << args, 0)...};
        ^
prog.cc:6:9: error: excess elements in scalar initializer
    int x = {0, (std::cout << args, 0)...};
        ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:11:5: note: in instantiation of function template specialization 'print<int, char [4], int, char [5]>' requested here
    print(1, " + ", 1, " = 2");
    ^
1 warning and 1 error generated.
Exit Code:
1