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 be4dd87db5c62788465a361b57604b1f4785b7b8) (https://github.com/llvm-mirror/llvm.git fe506c93e9a77773b46c3b9e213577f0ea812555)

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:14:10: error: no viable conversion from 'bar' to 'test'
    test t = bar{};
         ^   ~~~~~
prog.cc:6:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'bar' to 'const test &' for 1st argument
struct test
       ^
prog.cc:6:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'bar' to 'test &&' for 1st argument
struct test
       ^
prog.cc:8:5: note: candidate constructor not viable: no known conversion from 'bar' to 'foo' for 1st argument
    test(foo){}
    ^
1 error generated.
Exit Code:
1