Compile [2024-11-15 18:22:18 UTC]: fail
"g++-12" -fvisibility-inlines-hidden -std=c++17 -fPIC -m64 -pthread -O0 -fno-inline -Wall -fvisibility=hidden -DBOOST_ALL_NO_LIB=1 -DBOOST_COBALT_USE_STD_PMR=1 -I".." -I"../libs/hana/include" -I"../libs/hana/test/_include" -c -o "/var/boost/run/results/boost/bin.v2/libs/hana/test/test~concept~constant~to.test/gcc-12~c++17/debug/x86_64/debug-symbols-off/threading-multi/visibility-hidden/concept/constant/to.o" "../libs/hana/test/concept/constant/to.cpp"
In file included from ../libs/hana/test/concept/constant/to.cpp:8:
../boost/hana/core/to.hpp: In instantiation of 'struct boost::hana::to_impl<bool, minimal_constant_tag<bool>, void>':
../boost/hana/core/to.hpp:155:9: required by substitution of 'template<class From, class To> struct boost::hana::is_convertible<From, To, decltype ((void)(static_cast<boost::hana::convert_detail::no_conversion>((*(boost::hana::to_impl<To, From>*)(0)))))> [with From = minimal_constant_tag<bool>; To = bool]'
../libs/hana/test/concept/constant/to.cpp:12:69: required from here
../boost/hana/core/to.hpp:36:12: error: ambiguous template instantiation for 'struct boost::hana::to_impl<bool, minimal_constant_tag<bool>, boost::hana::when<true> >'
36 | struct to_impl : to_impl<To, From, when<true>> { };
| ^~~~~~~
../boost/hana/core/to.hpp:62:12: note: candidates are: 'template<class To, class From, bool condition> struct boost::hana::to_impl<To, From, boost::hana::when<condition> > [with To = bool; From = minimal_constant_tag<bool>; bool condition = true]'
62 | struct to_impl<To, From, when<condition>>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../boost/hana/core/to.hpp:173:12: note: 'template<class To, class From> struct boost::hana::to_impl<To, From, boost::hana::when<(boost::hana::Constant<C>::value && boost::hana::is_convertible<typename C::value_type, T>::value)> > [with To = bool; From = minimal_constant_tag<bool>]'
173 | struct to_impl<To, From, when<
| ^~~~~~~~~~~~~~~~~~~~~~~
174 | hana::Constant<From>::value &&
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
175 | is_convertible<typename From::value_type, To>::value
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
176 | >> : embedding<is_embedded<typename From::value_type, To>::value> {
| ~~
../boost/hana/core/to.hpp:36:12: error: invalid use of incomplete type 'struct boost::hana::to_impl<bool, minimal_constant_tag<bool>, boost::hana::when<true> >'
36 | struct to_impl : to_impl<To, From, when<true>> { };
| ^~~~~~~
../boost/hana/core/to.hpp:36:12: note: declaration of 'struct boost::hana::to_impl<bool, minimal_constant_tag<bool>, boost::hana::when<true> >'
../boost/hana/core/to.hpp: In instantiation of 'constexpr decltype(auto) boost::hana::to_t<To>::operator()(X&&) const [with X = minimal_constant<bool, true>; To = bool]':
../libs/hana/test/concept/constant/to.cpp:13:29: required from here
../boost/hana/core/to.hpp:78:40: error: 'apply' is not a member of 'boost::hana::to_impl<bool, minimal_constant_tag<bool>, void>'
78 | return to_impl<To, From>::apply(static_cast<X&&>(x));
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../boost/hana/core/to.hpp: In instantiation of 'struct boost::hana::to_impl<int, minimal_constant_tag<int>, void>':
../boost/hana/core/to.hpp:155:9: required by substitution of 'template<class From, class To> struct boost::hana::is_convertible<From, To, decltype ((void)(static_cast<boost::hana::convert_detail::no_conversion>((*(boost::hana::to_impl<To, From>*)(0)))))> [with From = minimal_constant_tag<int>; To = int]'
../libs/hana/test/concept/constant/to.cpp:15:67: required from here
../boost/hana/core/to.hpp:36:12: error: ambiguous template instantiation for 'struct boost::hana::to_impl<int, minimal_constant_tag<int>, boost::hana::when<true> >'
36 | struct to_impl : to_impl<To, From, when<true>> { };
| ^~~~~~~
../boost/hana/core/to.hpp:62:12: note: candidates are: 'template<class To, class From, bool condition> struct boost::hana::to_impl<To, From, boost::hana::when<condition> > [with To = int; From = minimal_constant_tag<int>; bool condition = true]'
62 | struct to_impl<To, From, when<condition>>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../boost/hana/core/to.hpp:173:12: note: 'template<class To, class From> struct boost::hana::to_impl<To, From, boost::hana::when<(boost::hana::Constant<C>::value && boost::hana::is_convertible<typename C::value_type, T>::value)> > [with To = int; From = minimal_constant_tag<int>]'
173 | struct to_impl<To, From, when<
| ^~~~~~~~~~~~~~~~~~~~~~~
174 | hana::Constant<From>::value &&
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
175 | is_convertible<typename From::value_type, To>::value
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
176 | >> : embedding<is_embedded<typename From::value_type, To>::value> {
| ~~
../boost/hana/core/to.hpp:36:12: error: invalid use of incomplete type 'struct boost::hana::to_impl<int, minimal_constant_tag<int>, boost::hana::when<true> >'
36 | struct to_impl : to_impl<To, From, when<true>> { };
| ^~~~~~~
../boost/hana/core/to.hpp:36:12: note: declaration of 'struct boost::hana::to_impl<int, minimal_constant_tag<int>, boost::hana::when<true> >'
../boost/hana/core/to.hpp: In instantiation of 'constexpr decltype(auto) boost::hana::to_t<To>::operator()(X&&) const [with X = minimal_constant<int, 1>; To = int]':
../libs/hana/test/concept/constant/to.cpp:16:28: required from here
../boost/hana/core/to.hpp:78:40: error: 'apply' is not a member of 'boost::hana::to_impl<int, minimal_constant_tag<int>, void>'
78 | return to_impl<To, From>::apply(static_cast<X&&>(x));
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../boost/hana/core/to.hpp: In instantiation of 'struct boost::hana::to_impl<long int, minimal_constant_tag<long int>, void>':
../boost/hana/core/to.hpp:155:9: required by substitution of 'template<class From, class To> struct boost::hana::is_convertible<From, To, decltype ((void)(static_cast<boost::hana::convert_detail::no_conversion>((*(boost::hana::to_impl<To, From>*)(0)))))> [with From = minimal_constant_tag<long int>; To = long int]'
../libs/hana/test/concept/constant/to.cpp:18:69: required from here
../boost/hana/core/to.hpp:36:12: error: ambiguous template instantiation for 'struct boost::hana::to_impl<long int, minimal_constant_tag<long int>, boost::hana::when<true> >'
36 | struct to_impl : to_impl<To, From, when<true>> { };
| ^~~~~~~
../boost/hana/core/to.hpp:62:12: note: candidates are: 'template<class To, class From, bool condition> struct boost::hana::to_impl<To, From, boost::hana::when<condition> > [with To = long int; From = minimal_constant_tag<long int>; bool condition = true]'
62 | struct to_impl<To, From, when<condition>>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../boost/hana/core/to.hpp:173:12: note: 'template<class To, class From> struct boost::hana::to_impl<To, From, boost::hana::when<(boost::hana::Constant<C>::value && boost::hana::is_convertible<typename C::value_type, T>::value)> > [with To = long int; From = minimal_constant_tag<long int>]'
173 | struct to_impl<To, From, when<
| ^~~~~~~~~~~~~~~~~~~~~~~
174 | hana::Constant<From>::value &&
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
175 | is_convertible<typename From::value_type, To>::value
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
176 | >> : embedding<is_embedded<typename From::value_type, To>::value> {
| ~~
../boost/hana/core/to.hpp:36:12: error: invalid use of incomplete type 'struct boost::hana::to_impl<long int, minimal_constant_tag<long int>, boost::hana::when<true> >'
36 | struct to_impl : to_impl<To, From, when<true>> { };
| ^~~~~~~
../boost/hana/core/to.hpp:36:12: note: declaration of 'struct boost::hana::to_impl<long int, minimal_constant_tag<long int>, boost::hana::when<true> >'
../boost/hana/core/to.hpp: In instantiation of 'constexpr decltype(auto) boost::hana::to_t<To>::operator()(X&&) const [with X = minimal_constant<long int, 1>; To = long int]':
../libs/hana/test/concept/constant/to.cpp:19:29: required from here
../boost/hana/core/to.hpp:78:40: error: 'apply' is not a member of 'boost::hana::to_impl<long int, minimal_constant_tag<long int>, void>'
78 | return to_impl<To, From>::apply(static_cast<X&&>(x));
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~