Test output: teeks99-dkr-dg14-2b - yap - reference_returns / gcc-14~c++2b
Rev 00765c42443d26fa0dd8ab340fb5b5739c450fbb / Tue, 12 Nov 2024 16:32:11 +0000
Compile [2024-11-12 19:40:31 UTC]: fail


    "g++-14"   -fvisibility-inlines-hidden -std=c++2b -fPIC -m64 -pthread -O0 -fno-inline -Wall -fvisibility=hidden  -DBOOST_ALL_NO_LIB=1 -DBOOST_COBALT_USE_STD_PMR=1   -I".." -I"/var/boost/run/boost_root/libs/assert/include" -I"/var/boost/run/boost_root/libs/container_hash/include" -I"/var/boost/run/boost_root/libs/core/include" -I"/var/boost/run/boost_root/libs/describe/include" -I"/var/boost/run/boost_root/libs/mp11/include" -I"/var/boost/run/boost_root/libs/throw_exception/include" -I"/var/boost/run/boost_root/libs/type_index/include" -I"/var/boost/run/boost_root/libs/yap/include"  -c -o "/var/boost/run/results/boost/bin.v2/libs/yap/test/reference_returns.test/gcc-14~c++2b/debug/x86_64/debug-symbols-off/threading-multi/visibility-hidden/reference_returns.o" "../libs/yap/test/reference_returns.cpp"

../libs/yap/test/reference_returns.cpp: In function 'int main()':
../libs/yap/test/reference_returns.cpp:36:57: error: conversion from '<brace-enclosed initializer list>' to 'term<reference_returning::number>' {aka 'boost::yap::expression<boost::yap::expr_kind::terminal, boost::hana::tuple<reference_returning::number> >'} is ambiguous
   36 |         term<reference_returning::number> unity = {{1.0}};
      |                                                         ^
In file included from ../libs/yap/test/reference_returns.cpp:6:
../boost/yap/expression.hpp:142:19: note: candidate: 'constexpr boost::yap::expression<boost::yap::expr_kind::terminal, boost::hana::tuple<T> >::expression(boost::hana::tuple<T>&&) [with T = reference_returning::number]'
  142 |         constexpr expression(hana::tuple<T> && rhs) : elements(std::move(rhs))
      |                   ^~~~~~~~~~
../boost/yap/expression.hpp:139:19: note: candidate: 'constexpr boost::yap::expression<boost::yap::expr_kind::terminal, boost::hana::tuple<T> >::expression(const boost::hana::tuple<T>&) [with T = reference_returning::number]'
  139 |         constexpr expression(hana::tuple<T> const & rhs) : elements(rhs) {}
      |                   ^~~~~~~~~~
../boost/yap/expression.hpp:136:19: note: candidate: 'constexpr boost::yap::expression<boost::yap::expr_kind::terminal, boost::hana::tuple<T> >::expression(T&&) [with T = reference_returning::number]'
  136 |         constexpr expression(T && t) : elements(static_cast<T &&>(t)) {}
      |                   ^~~~~~~~~~
../libs/yap/test/reference_returns.cpp:76:49: warning: possibly dangling reference to a temporary [-Wdangling-reference]
   76 |             reference_returning::number const & n =
      |                                                 ^
../libs/yap/test/reference_returns.cpp:77:25: note: the temporary was destroyed at the end of the full expression 'boost::yap::evaluate<expression<boost::yap::expr_kind::terminal, boost::hana::tuple<placeholder<1> > >, const reference_returning::number&>(boost::yap::literals::operator""_p<'1'>(), reference_returning::the_result)'
   77 |                 evaluate(1_p, reference_returning::the_result);
      |                 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~