Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

C++

Compiler

clang 5.0.0

Options
Warnings
Boost 1.67.0
C++17
no pedantic

Author

anonymous

over 7 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/clang-5.0.0/include -std=c++17
prog.cc:3:5: error: call to function 'bar' that is neither visible in the template definition nor found by argument-dependent lookup
    bar(T{});
    ^
prog.cc:9:5: note: in instantiation of function template specialization 'foo<int>' requested here
    foo(int{});
    ^
prog.cc:6:6: note: 'bar' should be declared prior to the call site
void bar(int) {}
     ^
1 error generated.
Exit Code:
1