Vector3 compilation error

Bug #1700095 reported by Danny Milosavljevic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
Low
Danny Milosavljevic

Bug Description

/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.cpp: In member function ‘void TestStelSphericalGeometry::testGreatCircleIntersection()’:
/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.cpp:282:11: error: call of overloaded ‘Vector3(int)’ is ambiguous
  Vec3d v(0);
           ^
In file included from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/StelVertexArray.hpp:23:0,
                 from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/OctahedronPolygon.hpp:23,
                 from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/StelSphereGeometry.hpp:23,
                 from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.hpp:25,
                 from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.cpp:20:
/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/VecMath.hpp:645:19: note: candidate: Vector3<T>::Vector3(const T*) [with T = double]
 template<class T> Vector3<T>::Vector3(const T* x)
                   ^
/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/VecMath.hpp:640:19: note: candidate: Vector3<T>::Vector3(T) [with T = double]
 template<class T> Vector3<T>::Vector3(T x)
                   ^
In file included from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/StelVertexArray.hpp:23:0,
                 from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/OctahedronPolygon.hpp:23,
                 from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/StelSphereGeometry.hpp:23,
                 from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.hpp:25,
                 from /tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.cpp:20:
/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/VecMath.hpp:162:25: note: candidate: constexpr Vector3<double>::Vector3(const Vector3<double>&)
 template<class T> class Vector3
                         ^
/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/core/VecMath.hpp:162:25: note: candidate: constexpr Vector3<double>::Vector3(Vector3<double>&&)
make[3]: *** [src/CMakeFiles/testStelSphereGeometry.dir/build.make:66: src/CMakeFiles/testStelSphereGeometry.dir/tests/testStelSphereGeometry.cpp.o] Error 1
make[3]: Leaving directory '/tmp/guix-build-stellarium-0.16.0.drv-0/build'
make[2]: *** [CMakeFiles/Makefile2:574: src/CMakeFiles/testStelSphereGeometry.dir/all] Error 2
make[2]: Leaving directory '/tmp/guix-build-stellarium-0.16.0.drv-0/build'

Easiest fix:

/tmp/guix-build-stellarium-0.16.0.drv-0/stellarium-0.16.0/src/tests/testStelSphereGeometry.cpp:282:11: error: call of overloaded ‘Vector3(int)’ is ambiguous
  Vec3d v(0.0);
          ^ replaced 0 by 0.0

Related branches

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Thanks for fix!

Could you write compiler info?

Changed in stellarium:
milestone: none → 0.16.1
importance: Undecided → Low
status: New → Fix Committed
assignee: nobody → Danny Milosavljevic (dannym+a)
Revision history for this message
Danny Milosavljevic (dannym+a) wrote :

gcc (GCC) 5.4.0 (on GNU Guix on x86_64).

Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.