: In function 'std::complex<_Tp> std::polar(const _Tp&, const _Tp&) [with _Tp = Eigen::half]': :13:20: error: could not convert '0' from 'int' to 'const Eigen::half&' 13 | z1 = std::polar(one); | ~~~~~~~~~~^~~~~ | | | int :13:20: note: when instantiating default argument for call to 'std::complex<_Tp> std::polar(const _Tp&, const _Tp&) [with _Tp = Eigen::half]' : In function 'int main()': :13:20: error: invalid initialization of reference of type 'const Eigen::half&' from expression of type 'int' In file included from :1: /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:967:40: note: in passing argument 2 of 'std::complex<_Tp> std::polar(const _Tp&, const _Tp&) [with _Tp = Eigen::half]' 967 | polar(const _Tp& __rho, const _Tp& __theta) | ~~~~~~~~~~~^~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex: In instantiation of 'std::complex<_Tp> std::pow(const complex<_Tp>&, int) [with _Tp = Eigen::half]': :19:18: required from here /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:967:40: note: 19 | z3 = std::pow(z0, (unsigned)2); /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:967:40: note: | ~~~~~~~~^~~~~~~~~~~~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:1288:11: error: no matching function for call to 'std::complex::complex(int)' 1288 | ? complex<_Tp>(1) / std::__complex_pow_unsigned(__z, -(unsigned)__n) | ^~~~~~~~~~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:153:28: note: candidate: 'template constexpr std::complex<_Tp>::complex(const std::complex<_Up>&) [with _Tp = Eigen::half]' 153 | _GLIBCXX_CONSTEXPR complex(const complex<_Up>& __z) | ^~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:153:28: note: template argument deduction/substitution failed: /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:1288:11: note: mismatched types 'const std::complex<_Tp>' and 'int' 1288 | ? complex<_Tp>(1) / std::__complex_pow_unsigned(__z, -(unsigned)__n) | ^~~~~~~~~~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:145:17: note: candidate: 'constexpr std::complex<_Tp>::complex(const std::complex<_Tp>&) [with _Tp = Eigen::half]' 145 | constexpr complex(const complex&) = default; | ^~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:145:25: note: no known conversion for argument 1 from 'int' to 'const std::complex&' 145 | constexpr complex(const complex&) = default; | ^~~~~~~~~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:140:26: note: candidate: 'constexpr std::complex<_Tp>::complex(const _Tp&, const _Tp&) [with _Tp = Eigen::half]' 140 | _GLIBCXX_CONSTEXPR complex(const _Tp& __r = _Tp(), const _Tp& __i = _Tp()) | ^~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:140:45: note: no known conversion for argument 1 from 'int' to 'const Eigen::half&' 140 | _GLIBCXX_CONSTEXPR complex(const _Tp& __r = _Tp(), const _Tp& __i = _Tp()) | ~~~~~~~~~~~^~~~~~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex: In instantiation of 'std::complex<_Tp> std::__complex_sqrt(const complex<_Tp>&) [with _Tp = Eigen::half]': /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:1195:58: required from 'std::complex<_Tp> std::sqrt(const complex<_Tp>&) [with _Tp = Eigen::half]' /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:140:45: note: 1195 | sqrt(const complex<_Tp>& __z) { return __complex_sqrt(__z.__rep()); } /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:140:45: note: | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ :16:19: required from here /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:140:45: note: 16 | z2 = std::sqrt(z0); /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:140:45: note: | ~~~~~~~~~^~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:1174:25: error: conversion from 'float' to non-scalar type 'Eigen::half' requested 1174 | _Tp __t = sqrt(2 * (std::abs(__z) + abs(__x))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex: In instantiation of 'std::complex<_Tp> std::__complex_acos(const complex<_Tp>&) [with _Tp = Eigen::half]': /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2214:28: required from 'std::complex<_Tp> std::acos(const complex<_Tp>&) [with _Tp = Eigen::half]' /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:1174:25: error: 2214 | { return __complex_acos(__z.__rep()); } /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:1174:25: error: | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ :28:19: required from here /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:1174:25: error: 28 | z5 = std::acos(z0); /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:1174:25: error: | ~~~~~~~~~^~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: conversion from 'long double' to non-scalar type 'const Eigen::half' requested 2038 | const _Tp __pi_2 = 1.5707963267948966192313216916397514L; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex: In instantiation of '_Tp std::__complex_arg(const complex<_Tp>&) [with _Tp = Eigen::half]': /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:919:56: required from '_Tp std::arg(const complex<_Tp>&) [with _Tp = Eigen::half]' /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: 919 | arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:1071:55: required from 'std::complex<_Tp> std::__complex_log(const complex<_Tp>&) [with _Tp = Eigen::half]' /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: 1071 | { return complex<_Tp>(log(std::abs(__z)), std::arg(__z)); } /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: | ~~~~~~~~^~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:1086:56: required from 'std::complex<_Tp> std::log(const complex<_Tp>&) [with _Tp = Eigen::half]' /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: 1086 | log(const complex<_Tp>& __z) { return __complex_log(__z.__rep()); } /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2350:22: required from 'std::complex<_Tp> std::__complex_asinh(const complex<_Tp>&) [with _Tp = Eigen::half]' /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: 2350 | return std::log(__t + __z); /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: | ~~~~~~~~^~~~~~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2369:29: required from 'std::complex<_Tp> std::asinh(const complex<_Tp>&) [with _Tp = Eigen::half]' /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: 2369 | { return __complex_asinh(__z.__rep()); } /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2230:23: required from 'std::complex<_Tp> std::__complex_asin(const complex<_Tp>&) [with _Tp = Eigen::half]' /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: 2230 | __t = std::asinh(__t); /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: | ~~~~~~~~~~^~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2250:28: required from 'std::complex<_Tp> std::asin(const complex<_Tp>&) [with _Tp = Eigen::half]' /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: 2250 | { return __complex_asin(__z.__rep()); } /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2037:46: required from 'std::complex<_Tp> std::__complex_acos(const complex<_Tp>&) [with _Tp = Eigen::half]' /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: 2037 | const std::complex<_Tp> __t = std::asin(__z); /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: | ~~~~~~~~~^~~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2214:28: required from 'std::complex<_Tp> std::acos(const complex<_Tp>&) [with _Tp = Eigen::half]' /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: 2214 | { return __complex_acos(__z.__rep()); } /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ :28:19: required from here /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: 28 | z5 = std::acos(z0); /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:2038:26: error: | ~~~~~~~~~^~~~ /opt/compiler-explorer/gcc-trunk-20231103/include/c++/14.0.0/complex:904:20: error: could not convert 'std::atan2((& __z)->std::complex::imag().Eigen::half::operator float(), (& __z)->std::complex::real().Eigen::half::operator float())' from 'float' to 'Eigen::half' 904 | { return atan2(__z.imag(), __z.real()); } | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ | | | float Compiler returned: 1