Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: cannot convert 'const ngcore::SIMD<double, 1>' to 'double' in initialization #164

Open
andreas-schwab opened this issue Oct 22, 2023 · 0 comments

Comments

@andreas-schwab
Copy link

https://build.opensuse.org/package/live_build_log/openSUSE:Factory:RISCV/netgen/standard/riscv64:

In file included from /home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd.hpp:12,
from /home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/ngcore.hpp:16:
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp: In instantiation of 'ngcore::SIMD<double, N>::SIMD(const T ...) [with T = {ngcore::SIMD<double, 1>, ngcore::SIMD<double, 1>}; int N = 4]':
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd.hpp:56:42: required from here
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:324:56: error: cannot convert 'const ngcore::SIMD<double, 1>' to 'double' in initialization
324 | : lo(detail::array_range(std::array<double, N>{vals...}, 0)),
| ^~~~
| |
| const ngcore::SIMD<double, 1>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:324:56: error: cannot convert 'const ngcore::SIMD<double, 1>' to 'double' in initialization
324 | : lo(detail::array_range(std::array<double, N>{vals...}, 0)),
| ^~~~
| |
| const ngcore::SIMD<double, 1>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:325:58: error: cannot convert 'const ngcore::SIMD<double, 1>' to 'double' in initialization
325 | high(detail::array_range(std::array<double, N>{vals...}, N1))
| ^~~~
| |
| const ngcore::SIMD<double, 1>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:325:58: error: cannot convert 'const ngcore::SIMD<double, 1>' to 'double' in initialization
325 | high(detail::array_range(std::array<double, N>{vals...}, N1))
| ^~~~
| |
| const ngcore::SIMD<double, 1>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:327:38: error: static assertion failed: wrong number of arguments
327 | static_assert(sizeof...(vals)==N, "wrong number of arguments");
| ~~~~~~~~~~~~~~~^~~
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:327:38: note: the comparison reduces to '(2 == 4)'
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp: In instantiation of 'ngcore::SIMD<double, N>::SIMD(const T ...) [with T = {ngcore::SIMD<double, 3>, ngcore::SIMD<double, 3>}; int N = 4]':
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd.hpp:58:42: required from here
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:324:56: error: cannot convert 'const ngcore::SIMD<double, 3>' to 'double' in initialization
324 | : lo(detail::array_range(std::array<double, N>{vals...}, 0)),
| ^~~~
| |
| const ngcore::SIMD<double, 3>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:324:56: error: cannot convert 'const ngcore::SIMD<double, 3>' to 'double' in initialization
324 | : lo(detail::array_range(std::array<double, N>{vals...}, 0)),
| ^~~~
| |
| const ngcore::SIMD<double, 3>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:325:58: error: cannot convert 'const ngcore::SIMD<double, 3>' to 'double' in initialization
325 | high(detail::array_range(std::array<double, N>{vals...}, N1))
| ^~~~
| |
| const ngcore::SIMD<double, 3>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:325:58: error: cannot convert 'const ngcore::SIMD<double, 3>' to 'double' in initialization
325 | high(detail::array_range(std::array<double, N>{vals...}, N1))
| ^~~~
| |
| const ngcore::SIMD<double, 3>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:327:38: error: static assertion failed: wrong number of arguments
327 | static_assert(sizeof...(vals)==N, "wrong number of arguments");
| ~~~~~~~~~~~~~~~^~~
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:327:38: note: the comparison reduces to '(2 == 4)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant