Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190919 (experimental)

Options
Warnings
Verbose
Don't Use Boost
C++17
-pedantic

Author

anonymous

over 5 years ago

$ g++ prog.cc -Wall -Wextra -v -std=c++17 -pedantic
Using built-in specs.
COLLECT_GCC=/opt/wandbox/gcc-head/bin/g++
COLLECT_LTO_WRAPPER=/opt/wandbox/gcc-head/libexec/gcc/x86_64-pc-linux-gnu/10.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../source/configure --prefix=/opt/wandbox/gcc-head --enable-languages=c,c++ --disable-multilib --without-ppl --without-cloog-ppl --enable-checking=release --disable-nls --enable-lto LDFLAGS=-Wl,-rpath,/opt/wandbox/gcc-head/lib,-rpath,/opt/wandbox/gcc-head/lib64,-rpath,/opt/wandbox/gcc-head/lib32
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.0.0 20190919 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-o' 'prog.exe' '-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' '-Wpedantic' '-Wall' '-Wextra' '-v' '-std=c++17' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /opt/wandbox/gcc-head/libexec/gcc/x86_64-pc-linux-gnu/10.0.0/cc1plus -quiet -v -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 -imultiarch x86_64-linux-gnu -D_GNU_SOURCE prog.cc -quiet -dumpbase prog.cc -mtune=generic -march=x86-64 -auxbase prog -Wpedantic -Wall -Wextra -std=c++17 -version -o /tmp/ccj9kc0g.s
GNU C++17 (GCC) version 10.0.0 20190919 (experimental) (x86_64-pc-linux-gnu)
	compiled by GNU C version 10.0.0 20190919 (experimental), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/10.0.0/../../../../x86_64-pc-linux-gnu/include"
ignoring nonexistent directory "/opt/wandbox/nlohmann-json/src"
#include "..." search starts here:
#include <...> search starts here:
 /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/gcc-head/lib/gcc/x86_64-pc-linux-gnu/10.0.0/../../../../include/c++/10.0.0
 /opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/10.0.0/../../../../include/c++/10.0.0/x86_64-pc-linux-gnu
 /opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/10.0.0/../../../../include/c++/10.0.0/backward
 /opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/10.0.0/include
 /opt/wandbox/gcc-head/include
 /opt/wandbox/gcc-head/lib/gcc/x86_64-pc-linux-gnu/10.0.0/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
GNU C++17 (GCC) version 10.0.0 20190919 (experimental) (x86_64-pc-linux-gnu)
	compiled by GNU C version 10.0.0 20190919 (experimental), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 4681beb6a3d97e87cbc5e6ff8ad6fa78
prog.cc: In function 'int main()':
prog.cc:13:29: error: no matching function for call to 'std::variant<double>::variant(<brace-enclosed initializer list>)'
   13 |     std::variant<double>{600}; // Fails
      |                             ^
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1368:2: note: candidate: 'template<long unsigned int _Np, class _Up, class ... _Args, class _Tp, class> constexpr std::variant<_Types>::variant(std::in_place_index_t<_Np>, std::initializer_list<_Up>, _Args&& ...) [with long unsigned int _Np = _Np; _Up = _Up; _Args = {_Args ...}; _Tp = _Tp; <template-parameter-2-5> = <template-parameter-1-5>; _Types = {double}]'
 1368 |  variant(in_place_index_t<_Np>, initializer_list<_Up> __il,
      |  ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1368:2: note:   template argument deduction/substitution failed:
prog.cc:13:29: note:   mismatched types 'std::in_place_index_t<_Idx>' and 'int'
   13 |     std::variant<double>{600}; // Fails
      |                             ^
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1357:2: note: candidate: 'template<long unsigned int _Np, class ... _Args, class _Tp, class> constexpr std::variant<_Types>::variant(std::in_place_index_t<_Np>, _Args&& ...) [with long unsigned int _Np = _Np; _Args = {_Args ...}; _Tp = _Tp; <template-parameter-2-4> = <template-parameter-1-4>; _Types = {double}]'
 1357 |  variant(in_place_index_t<_Np>, _Args&&... __args)
      |  ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1357:2: note:   template argument deduction/substitution failed:
prog.cc:13:29: note:   mismatched types 'std::in_place_index_t<_Idx>' and 'int'
   13 |     std::variant<double>{600}; // Fails
      |                             ^
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1347:2: note: candidate: 'template<class _Tp, class _Up, class ... _Args, class> constexpr std::variant<_Types>::variant(std::in_place_type_t<_Tp>, std::initializer_list<_Up>, _Args&& ...) [with _Tp = _Tp; _Up = _Up; _Args = {_Args ...}; <template-parameter-2-4> = <template-parameter-1-4>; _Types = {double}]'
 1347 |  variant(in_place_type_t<_Tp>, initializer_list<_Up> __il,
      |  ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1347:2: note:   template argument deduction/substitution failed:
prog.cc:13:29: note:   mismatched types 'std::in_place_type_t<_Tp>' and 'int'
   13 |     std::variant<double>{600}; // Fails
      |                             ^
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1337:2: note: candidate: 'template<class _Tp, class ... _Args, class> constexpr std::variant<_Types>::variant(std::in_place_type_t<_Tp>, _Args&& ...) [with _Tp = _Tp; _Args = {_Args ...}; <template-parameter-2-3> = <template-parameter-1-3>; _Types = {double}]'
 1337 |  variant(in_place_type_t<_Tp>, _Args&&... __args)
      |  ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1337:2: note:   template argument deduction/substitution failed:
prog.cc:13:29: note:   mismatched types 'std::in_place_type_t<_Tp>' and 'int'
   13 |     std::variant<double>{600}; // Fails
      |                             ^
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1327:2: note: candidate: 'template<class _Tp, class, class, class _Tj, class> constexpr std::variant<_Types>::variant(_Tp&&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; <template-parameter-2-3> = <template-parameter-1-3>; _Tj = _Tj; <template-parameter-2-5> = <template-parameter-1-5>; _Types = {double}]'
 1327 |  variant(_Tp&& __t)
      |  ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1327:2: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant: In substitution of 'template<class ... _Types> template<class _Tp, class> using __accepted_type = std::variant<_Types>::__to_type<__accepted_index<_Tp> > [with _Tp = int&&; <template-parameter-2-2> = std::enable_if<true, void>::type; _Types = {double}]':
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1323:9:   required from here
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1293:8: error: no type named 'type' in 'struct std::enable_if<false, void>'
 1293 |  using __accepted_type = __to_type<__accepted_index<_Tp>>;
      |        ^~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1315:7: note: candidate: 'constexpr std::variant<_Types>::variant(std::variant<_Types>&&) [with _Types = {double}]'
 1315 |       variant(variant&&) = default;
      |       ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1315:15: note:   no known conversion for argument 1 from 'int' to 'std::variant<double>&&'
 1315 |       variant(variant&&) = default;
      |               ^~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1314:7: note: candidate: 'constexpr std::variant<_Types>::variant(const std::variant<_Types>&) [with _Types = {double}]'
 1314 |       variant(const variant& __rhs) = default;
      |       ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1314:30: note:   no known conversion for argument 1 from 'int' to 'const std::variant<double>&'
 1314 |       variant(const variant& __rhs) = default;
      |               ~~~~~~~~~~~~~~~^~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1313:7: note: candidate: 'constexpr std::variant<_Types>::variant() [with _Types = {double}]'
 1313 |       variant() = default;
      |       ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1313:7: note:   candidate expects 0 arguments, 1 provided
Exit Code:
1