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 4478cc1b78174a29430da5419cef6881298e1491) (https://github.com/llvm-mirror/llvm.git f5dffd96859660834a4a836f0e7a5eb0a915e547)

Options
Warnings
Don't Use Boost
C++11
-pedantic-errors

Author

anonymous

over 6 years ago

$ clang++ prog.cc -Wall -Wextra -std=c++11 -pedantic-errors
prog.cc:13:2: error: implicit instantiation of undefined template 'Foo<std::__1::__bit_const_reference<std::__1::__bitset<1, 32> > >'
        Foo<B>::value;
        ^
prog.cc:20:2: note: in instantiation of function template specialization 'bar<std::__1::__bit_const_reference<std::__1::__bitset<1, 32> > >' requested here
        bar(bits[0]);
        ^
prog.cc:4:8: note: template is declared here
struct Foo;
       ^
1 error generated.
Exit Code:
1