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~issues~github_460.test/gcc-12~c++17/debug/x86_64/debug-symbols-off/threading-multi/visibility-hidden/issues/github_460.o" "../libs/hana/test/issues/github_460.cpp"
In file included from ../boost/hana/detail/operators/comparable.hpp:15,
from ../boost/hana/pair.hpp:20,
from ../boost/hana/detail/struct_macros.hpp:27,
from ../boost/hana/define_struct.hpp:15,
from ../libs/hana/test/issues/github_460.cpp:5:
../boost/hana/fwd/equal.hpp: In instantiation of 'struct boost::hana::equal_impl<boost::hana::tuple_tag, boost::hana::tuple_tag, void>':
../boost/hana/equal.hpp:50:28: required from 'constexpr auto boost::hana::equal_t::operator()(X&&, Y&&) const [with X = boost::hana::tuple<int>; Y = boost::hana::tuple<int>]'
../libs/hana/test/issues/github_460.cpp:16:27: required from here
../boost/hana/fwd/equal.hpp:69:12: error: ambiguous template instantiation for 'struct boost::hana::equal_impl<boost::hana::tuple_tag, boost::hana::tuple_tag, boost::hana::when<true> >'
69 | struct equal_impl : equal_impl<T, U, when<true>> { };
| ^~~~~~~~~~
In file included from ../libs/hana/test/issues/github_460.cpp:6:
../boost/hana/equal.hpp:55:12: note: candidates are: 'template<class T, class U, bool condition> struct boost::hana::equal_impl<T, U, boost::hana::when<condition> > [with T = boost::hana::tuple_tag; U = boost::hana::tuple_tag; bool condition = true]'
55 | struct equal_impl<T, U, when<condition>> : default_ {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../boost/hana/equal.hpp:168:12: note: 'template<class T, class U> struct boost::hana::equal_impl<T, U, boost::hana::when<(boost::hana::Sequence<S>::value && boost::hana::Sequence<Tag>::value)> > [with T = boost::hana::tuple_tag; U = boost::hana::tuple_tag]'
168 | struct equal_impl<T, U, when<Sequence<T>::value && hana::Sequence<U>::value>> {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../boost/hana/fwd/equal.hpp:69:12: error: invalid use of incomplete type 'struct boost::hana::equal_impl<boost::hana::tuple_tag, boost::hana::tuple_tag, boost::hana::when<true> >'
69 | struct equal_impl : equal_impl<T, U, when<true>> { };
| ^~~~~~~~~~
../boost/hana/fwd/equal.hpp:69:12: note: declaration of 'struct boost::hana::equal_impl<boost::hana::tuple_tag, boost::hana::tuple_tag, boost::hana::when<true> >'
../boost/hana/equal.hpp: In instantiation of 'constexpr auto boost::hana::equal_t::operator()(X&&, Y&&) const [with X = boost::hana::tuple<int>; Y = boost::hana::tuple<int>]':
../libs/hana/test/issues/github_460.cpp:16:27: required from here
../boost/hana/equal.hpp:50:28: error: 'apply' is not a member of 'Equal' {aka 'boost::hana::equal_impl<boost::hana::tuple_tag, boost::hana::tuple_tag, void>'}
50 | return Equal::apply(static_cast<X&&>(x), static_cast<Y&&>(y));
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../libs/hana/test/issues/github_460.cpp: In function 'int main()':
../libs/hana/test/issues/github_460.cpp:25:33: error: non-constant condition for static assertion
25 | static_assert(SomeStruct{5} == SomeStruct{5}, "");
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
../libs/hana/test/issues/github_460.cpp:25:33: in 'constexpr' expansion of 'SomeStruct{5}.SomeStruct::operator==(SomeStruct{5})'
../libs/hana/test/issues/github_460.cpp:25:33: error: 'constexpr' call flows off the end of the function
../libs/hana/test/issues/github_460.cpp:26:30: error: non-constant condition for static assertion
26 | static_assert(hana::equal(SomeStruct{5}, SomeStruct{5}), "");
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../libs/hana/test/issues/github_460.cpp:26:30: in 'constexpr' expansion of 'boost::hana::equal.boost::hana::equal_t::operator()<SomeStruct, SomeStruct>(SomeStruct{5}, SomeStruct{5})'
../boost/hana/equal.hpp:50:28: in 'constexpr' expansion of 'boost::hana::equal_impl<SomeStruct, SomeStruct, boost::hana::when<true> >::apply<SomeStruct, SomeStruct>((* & x), (* & y))'
../boost/hana/equal.hpp:97:38: in 'constexpr' expansion of '(& x)->SomeStruct::operator==((*(const SomeStruct*)(& y)))'
../libs/hana/test/issues/github_460.cpp:26:30: error: 'constexpr' call flows off the end of the function