#71419 closed defect (fixed)

Gyoto @1.4.4: gyoto.C: error: reference to 'data' is ambiguous

Reported by: barracuda156 Owned by: paumard
Priority: Normal Milestone:
Component: ports Version: 2.10.5
Keywords: Cc:
Port: Gyoto

Description

:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_Gyoto/Gyoto/work/Gyoto-1.4.4/bin'
:info:build ccache /opt/local/bin/g++-mp-14 -DHAVE_CONFIG_H -I. -I.. -I../include  -I../include  -I/opt/local/include/udunits2/ -I/opt/local/libexec/boost/1.76/include -DPACKAGE_STRING="Gyoto 1.4.4"  -I/opt/local/libexec/boost/1.76/include -I/opt/local/include -P -DGYOTO_NO_DEPRECATED -D_THREAD_SAFE -pthread  -pipe -I/opt/local/libexec/boost/1.76/include -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -MT gyoto-gyoto.o -MD -MP -MF .deps/gyoto-gyoto.Tpo -c -o gyoto-gyoto.o `test -f 'gyoto.C' || echo './'`gyoto.C
:info:build gyoto.C: In function 'int main(int, char**)':
:info:build gyoto.C:530:5: error: reference to 'data' is ambiguous
:info:build   530 |     data = new Astrobj::Properties();
:info:build       |     ^~~~
:info:build In file included from /opt/local/include/gcc14/c++/vector:69,
:info:build                  from ../include/GyotoDefs.h:29,
:info:build                  from gyoto.C:21:
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:531:5: error: reference to 'data' is ambiguous
:info:build   531 |     data->alloc=true;
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:548:7: error: reference to 'data' is ambiguous
:info:build   548 |       data->intensity=vect+offset*(curquant++);
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:555:7: error: reference to 'data' is ambiguous
:info:build   555 |       data->time=vect+offset*(curquant++);
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:562:7: error: reference to 'data' is ambiguous
:info:build   562 |       data->distance=vect+offset*(curquant++);
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:569:7: error: reference to 'data' is ambiguous
:info:build   569 |       data->first_dmin=vect+offset*(curquant++);
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:578:7: error: reference to 'data' is ambiguous
:info:build   578 |       data->redshift=vect+offset*(curquant++);
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:587:7: error: reference to 'data' is ambiguous
:info:build   587 |       data->impactcoords = impactcoords = new double [res*res*16];
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:591:7: error: reference to 'data' is ambiguous
:info:build   591 |       data->user1=vect+offset*(curquant++);
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:598:7: error: reference to 'data' is ambiguous
:info:build   598 |       data->user2=vect+offset*(curquant++);
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:605:7: error: reference to 'data' is ambiguous
:info:build   605 |       data->user3=vect+offset*(curquant++);
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:612:7: error: reference to 'data' is ambiguous
:info:build   612 |       data->user4=vect+offset*(curquant++);
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:619:7: error: reference to 'data' is ambiguous
:info:build   619 |       data->user5=vect+offset*(curquant++);
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:627:7: error: reference to 'data' is ambiguous
:info:build   627 |       data->spectrum=curvect;
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:630:7: error: reference to 'data' is ambiguous
:info:build   630 |       data->offset=int(offset);
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:637:7: error: reference to 'data' is ambiguous
:info:build   637 |       data->stokesQ=curvect;
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
:info:build gyoto.C:640:7: error: reference to 'data' is ambiguous
:info:build   640 |       data->offset=int(offset);
:info:build       |       ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:344:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
:info:build   344 |     data(initializer_list<_Tp> __il) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:334:5: note:                 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
:info:build   334 |     data(_Tp (&__array)[_Nm]) noexcept
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:323:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
:info:build   323 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build /opt/local/include/gcc14/c++/bits/range_access.h:312:5: note:                 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
:info:build   312 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
:info:build       |     ^~~~
:info:build gyoto.C:64:42: note:                 'Gyoto::SmartPointer<Gyoto::Astrobj::Properties> data'
:info:build    64 | static SmartPointer<Astrobj::Properties> data = NULL;
:info:build       |                                          ^~~~
. . .

I also tried with Boost 1.81, but it fails as well.

Attachments (1)

main.log (348.7 KB) - added by barracuda156 18 months ago.

Download all attachments as: .zip

Change History (7)

Changed 18 months ago by barracuda156

Attachment: main.log added

comment:1 Changed 18 months ago by paumard

I believe update the port to Gyoto 2.0.x should solve that, I'm on it. Will take a few more days.

Cheers.

comment:2 Changed 17 months ago by ryandesign (Ryan Carsten Schmidt)

Summary: Gyoto fails to build: gyoto.C: error: reference to 'data' is ambiguousGyoto @1.4.4: gyoto.C: error: reference to 'data' is ambiguous

It's been updated in [dbe97faf3a7fbe6c77af38888d345ff92dc49a04/macports-ports]. Does that work for you?

comment:3 in reply to:  2 ; Changed 17 months ago by barracuda156

Replying to ryandesign:

It's been updated in [dbe97faf3a7fbe6c77af38888d345ff92dc49a04/macports-ports]. Does that work for you?

Let me try fixing C++ standard and dependencies specs and see if it builds then.

UPD. Disabling C++11 cannot possibly work, since both xercesc3 and eigen3 require it. So as is the build fails right-away. I will see if I can sort it out.

Last edited 17 months ago by barracuda156 (previous) (diff)

comment:4 in reply to:  3 ; Changed 17 months ago by paumard

Replying to barracuda156:

UPD. Disabling C++11 cannot possibly work, since both xercesc3 and eigen3 require it. So as is the build fails right-away. I will see if I can sort it out.

Disabling C++11 would not be a great solution, Gyoto itself needs it to perform well and will soon make it a hard requirement.

Do you mean that Gyoto still can't be built with gcc14? It's strange because it does build fine under Debian with GCC 14.2.0.

Also, in this new release of Gyoto, the token 'data' has been replaced with '::data' throughout bin/gyoto.C, exactly to fix this issue.

comment:5 in reply to:  4 Changed 17 months ago by barracuda156

Replying to paumard:

Replying to barracuda156:

UPD. Disabling C++11 cannot possibly work, since both xercesc3 and eigen3 require it. So as is the build fails right-away. I will see if I can sort it out.

Disabling C++11 would not be a great solution, Gyoto itself needs it to perform well and will soon make it a hard requirement.

Do you mean that Gyoto still can't be built with gcc14? It's strange because it does build fine under Debian with GCC 14.2.0.

Also, in this new release of Gyoto, the token 'data' has been replaced with '::data' throughout bin/gyoto.C, exactly to fix this issue.

After my PR has been merged, it builds fine.

comment:6 Changed 17 months ago by paumard

Resolution: fixed
Status: assignedclosed

Thanks so much!

So, closed in commit 4ae3011

Note: See TracTickets for help on using tickets.