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 ba2df16480239328ec4a1e68acdcb22051bbed0f) (https://github.com/llvm-mirror/llvm.git 74e6178bb1d712d6293cd2ccc5b1acf61ca7ffd2)

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:22: error: invalid application of 'sizeof' to an incomplete type 'incomplete_type'
                std::conditional_t<sizeof(T) < sizeof(void*), int, float>,
                                   ^~~~~~~~~
prog.cc:15:23: note: in instantiation of template class 'foo<incomplete_type>' requested here
        foo<incomplete_type> f;
                             ^
prog.cc:2:8: note: forward declaration of 'incomplete_type'
struct incomplete_type;
       ^
1 error generated.
Exit Code:
1