Test output: teeks99-dkr-dg13-warn - yap - reference_returns / gcc-13~c++20~warn
Rev c5239cd4ca1e63a779117b2b48e182fa95c31b54 / Sun, 17 Nov 2024 23:56:13 +0000
Compile [2024-11-18 03:01:29 UTC]: fail


    "g++-13"   -fvisibility-inlines-hidden -std=c++20 -Wall -Wextra -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-13~c++20~warn/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 'const reference_returning::number& reference_returning::operator+(number, number)':
../libs/yap/test/reference_returns.cpp:28:37: warning: unused parameter 'a' [-Wunused-parameter]
   28 |     number const & operator+(number a, number b) { return the_result; }
      |                              ~~~~~~~^
../libs/yap/test/reference_returns.cpp:28:47: warning: unused parameter 'b' [-Wunused-parameter]
   28 |     number const & operator+(number a, number b) { return the_result; }
      |                                        ~~~~~~~^
../libs/yap/test/reference_returns.cpp: In function 'reference_returning::number& reference_returning::operator-(number, number)':
../libs/yap/test/reference_returns.cpp:30:31: warning: unused parameter 'a' [-Wunused-parameter]
   30 |     number & operator-(number a, number b) { return a_result; }
      |                        ~~~~~~~^
../libs/yap/test/reference_returns.cpp:30:41: warning: unused parameter 'b' [-Wunused-parameter]
   30 |     number & operator-(number a, number b) { return a_result; }
      |                                  ~~~~~~~^
../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);
      |                 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~