Author
anonymous
over 5 years ago
Language
C++
Compiler
clang 9.0.0
Options
Warnings
Verbose
Don't Use Boost
C++17
-pedantic
Author
anonymous
over 5 years ago
$ clang++ prog.cc -Wall -Wextra -v -std=c++17 -pedantic
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/wandbox/clang-9.0.0/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.0.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
"/opt/wandbox/clang-9.0.0/bin/clang-9" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name prog.cc -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -v -nostdinc++ -resource-dir /opt/wandbox/clang-9.0.0/lib/clang/9.0.0 -I /opt/wandbox/clang-9.0.0/include/c++/v1 -I /opt/wandbox/boost-sml/include -I /opt/wandbox/boost-di/include -I /opt/wandbox/range-v3/include -I /opt/wandbox/nlohmann-json/src -I /opt/wandbox/cmcstl2/include -I /opt/wandbox/te/include -internal-isystem /usr/local/include -internal-isystem /opt/wandbox/clang-9.0.0/lib/clang/9.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wall -Wextra -pedantic -std=c++17 -fdeprecated-macro -fdebug-compilation-dir /home/jail -ferror-limit 19 -fmessage-length 0 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -fansi-escape-codes -faddrsig -o /tmp/prog-53e242.o -x c++ prog.cc
clang -cc1 version 9.0.0 based upon LLVM 9.0.0 default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/opt/wandbox/nlohmann-json/src"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/wandbox/clang-9.0.0/include/c++/v1
/opt/wandbox/boost-sml/include
/opt/wandbox/boost-di/include
/opt/wandbox/range-v3/include
/opt/wandbox/cmcstl2/include
/opt/wandbox/te/include
/opt/wandbox/clang-9.0.0/lib/clang/9.0.0/include
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
prog.cc:13:5: error: no matching constructor for initialization of 'std::variant<double>'
std::variant<double>{600}; // Fails
^ ~~~~~
/opt/wandbox/clang-9.0.0/include/c++/v1/variant:1195:3: note: candidate constructor not viable: no known conversion from 'int' to 'const std::__1::variant<double>' for 1st argument
variant(const variant&) = default;
^
/opt/wandbox/clang-9.0.0/include/c++/v1/variant:1196:3: note: candidate constructor not viable: no known conversion from 'int' to 'std::__1::variant<double>' for 1st argument
variant(variant&&) = default;
^
/opt/wandbox/clang-9.0.0/include/c++/v1/variant:1208:13: note: candidate template ignored: substitution failure [with _Arg = int, $1 = 0, $2 = 0, $3 = 0]: no type named 'type' in 'std::__1::invoke_result<std::__1::__variant_detail::__all_overloads<std::__1::__variant_detail::__overload<double, 0> >, int, int>'
constexpr variant(_Arg&& __arg) noexcept(
^
/opt/wandbox/clang-9.0.0/include/c++/v1/variant:1217:22: note: candidate template ignored: could not match 'in_place_index_t<_Idx>' against 'int'
explicit constexpr variant(
^
/opt/wandbox/clang-9.0.0/include/c++/v1/variant:1245:22: note: candidate template ignored: could not match 'in_place_type_t<type-parameter-0-0>' against 'int'
explicit constexpr variant(in_place_type_t<_Tp>, _Args&&... __args) noexcept(
^
/opt/wandbox/clang-9.0.0/include/c++/v1/variant:1192:13: note: candidate constructor template not viable: requires 0 arguments, but 1 was provided
constexpr variant() noexcept(is_nothrow_default_constructible_v<__first_type>)
^
/opt/wandbox/clang-9.0.0/include/c++/v1/variant:1231:22: note: candidate constructor template not viable: requires at least 2 arguments, but 1 was provided
explicit constexpr variant(
^
/opt/wandbox/clang-9.0.0/include/c++/v1/variant:1258:22: note: candidate constructor template not viable: requires at least 2 arguments, but 1 was provided
explicit constexpr variant(
^
1 error generated.
Exit Code:
1