Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pow(a,b) overload resolution under llvm19 #3110

Merged
merged 14 commits into from
Sep 30, 2024

Conversation

WardBrian
Copy link
Member

Summary

Closes #3106. This fixes both the test failures we were seeing in test/unit/mix and the model compilation that was failing.
Two sets of changes were needed:

  1. Adding const & to some template parameters such that our overloads are prioritized (recommended by @SteveBronder)
  2. Splitting the vectorized overload between prim/ and rev/

The second one here was trickier, but necessary to allow vectorized calls to see the rev signatures. So far as @SteveBronder and I can tell, all of the Stan Math functions that use this style of having the apply-scalar overload last in the prim file could end up in this situation where said overload can never resolve the rev specializations, if the prim file is included in any rev headers and therefore resolved first.

Tests

None. I plan on running the bleeding-edge pipeline on this branch before merging.

Side Effects

Could potentially speed up the vectorized signature of pow as it will now use rev specializations. Could also negatively impact compile times due to the extra resolution required.

Release notes

Fixed some failures to compile calls to pow when using libc++ 19.

Checklist

  • Copyright holder: Simons Foundation

    The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
    - Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
    - Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

  • the basic tests are passing

    • unit tests pass (to run, use: ./runTests.py test/unit)
    • header checks pass, (make test-headers)
    • dependencies checks pass, (make test-math-dependencies)
    • docs build, (make doxygen)
    • code passes the built in C++ standards checks (make cpplint)
  • the code is written in idiomatic C++ and changes are documented in the doxygen

  • the new changes are tested

@WardBrian WardBrian marked this pull request as draft September 25, 2024 18:42
@WardBrian WardBrian marked this pull request as ready for review September 25, 2024 19:37
@SteveBronder
Copy link
Collaborator

SteveBronder commented Sep 26, 2024

From jenkins

./stan/math/prim/fun/pow.hpp:47:15: note: in instantiation of function template specialization 'std::pow<stan::math::fvar >' requested here
return std::pow(a, b);

The recent changes are causing the prim pow to be the valid overload.

template <typename T1, typename T2,
          require_all_t<
              disjunction<is_complex<T1>, std::is_arithmetic<T1>>,
              disjunction<is_complex<T2>, std::is_arithmetic<T2>>>* = nullptr>
inline auto pow(const T1& a, const T2& b) {
  return std::pow(a, b);
}

It looks like we are trying to just have one overload for combinations of std complex and arithmetic types. I think we should break this up so that's it is easier to read. It's going to be a lot more expensive for the compiler though

template <typename T1, typename T2,
          require_arithmetic_t<T1>* = nullptr, require_arithmetic_t<T2>* = nullptr>
inline auto pow(const std::complex<T1>& a, const std::complex<T2>& b) {
  return std::pow(a, b);
}

template <typename T1, typename T2,
          require_arithmetic_t<T1>* = nullptr, require_arithmetic_t<T2>* = nullptr>
inline auto pow(const T1& a, const std::complex<T2>& b) {
  return std::pow(a, b);
}

template <typename T1, typename T2,
          require_arithmetic_t<T1>* = nullptr, require_arithmetic_t<T2>* = nullptr>
inline auto pow(const std::complex<T1>& a, const T2& b) {
  return std::pow(a, b);
}

template <typename T1, typename T2,
          require_arithmetic_t<T1>* = nullptr, require_arithmetic_t<T2>* = nullptr>
inline auto pow(const T1& a, const T2& b) {
  return std::pow(a, b);
}

@WardBrian
Copy link
Member Author

@SteveBronder that change didn't fix the expression tests:

Details

$ python3 runTests.py test/expressions/ -j7 --only-functions pow

/home/brian/Dev/cpp/math/runTests.py:386: SyntaxWarning: invalid escape sequence '\('
  if re.search(" |\(|\)", out):
make: 'test/expressions/stanc' is up to date.
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests27_test.o -MM -E -MG -MP -MF test/expressions/tests27_test.d test/expressions/tests27_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests26_test.o -MM -E -MG -MP -MF test/expressions/tests26_test.d test/expressions/tests26_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests25_test.o -MM -E -MG -MP -MF test/expressions/tests25_test.d test/expressions/tests25_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests24_test.o -MM -E -MG -MP -MF test/expressions/tests24_test.d test/expressions/tests24_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests23_test.o -MM -E -MG -MP -MF test/expressions/tests23_test.d test/expressions/tests23_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests22_test.o -MM -E -MG -MP -MF test/expressions/tests22_test.d test/expressions/tests22_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests21_test.o -MM -E -MG -MP -MF test/expressions/tests21_test.d test/expressions/tests21_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests20_test.o -MM -E -MG -MP -MF test/expressions/tests20_test.d test/expressions/tests20_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests19_test.o -MM -E -MG -MP -MF test/expressions/tests19_test.d test/expressions/tests19_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests18_test.o -MM -E -MG -MP -MF test/expressions/tests18_test.d test/expressions/tests18_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests17_test.o -MM -E -MG -MP -MF test/expressions/tests17_test.d test/expressions/tests17_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests16_test.o -MM -E -MG -MP -MF test/expressions/tests16_test.d test/expressions/tests16_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests15_test.o -MM -E -MG -MP -MF test/expressions/tests15_test.d test/expressions/tests15_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests14_test.o -MM -E -MG -MP -MF test/expressions/tests14_test.d test/expressions/tests14_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests13_test.o -MM -E -MG -MP -MF test/expressions/tests13_test.d test/expressions/tests13_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests12_test.o -MM -E -MG -MP -MF test/expressions/tests12_test.d test/expressions/tests12_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests11_test.o -MM -E -MG -MP -MF test/expressions/tests11_test.d test/expressions/tests11_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests10_test.o -MM -E -MG -MP -MF test/expressions/tests10_test.d test/expressions/tests10_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests9_test.o -MM -E -MG -MP -MF test/expressions/tests9_test.d test/expressions/tests9_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests8_test.o -MM -E -MG -MP -MF test/expressions/tests8_test.d test/expressions/tests8_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests7_test.o -MM -E -MG -MP -MF test/expressions/tests7_test.d test/expressions/tests7_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests6_test.o -MM -E -MG -MP -MF test/expressions/tests6_test.d test/expressions/tests6_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests5_test.o -MM -E -MG -MP -MF test/expressions/tests5_test.d test/expressions/tests5_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests4_test.o -MM -E -MG -MP -MF test/expressions/tests4_test.d test/expressions/tests4_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests3_test.o -MM -E -MG -MP -MF test/expressions/tests3_test.d test/expressions/tests3_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests2_test.o -MM -E -MG -MP -MF test/expressions/tests2_test.d test/expressions/tests2_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests1_test.o -MM -E -MG -MP -MF test/expressions/tests1_test.d test/expressions/tests1_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest     -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0  -c -MT test/expressions/tests0_test.o -MM -E -MG -MP -MF test/expressions/tests0_test.d test/expressions/tests0_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest      -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0  -c -o test/expressions/tests0_test.o test/expressions/tests0_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest      -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0  -c -o test/expressions/tests1_test.o test/expressions/tests1_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest      -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0  -c -o test/expressions/tests2_test.o test/expressions/tests2_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest      -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0  -c -o test/expressions/tests3_test.o test/expressions/tests3_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest      -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0  -c -o test/expressions/tests4_test.o test/expressions/tests4_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest      -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0  -c -o test/expressions/tests5_test.o test/expressions/tests5_test.cpp
g++ -DSTAN_TEST_PRINT_MATRIX_FAILURE -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess      -I lib/tbb_2020.3/include    -O3  -I . -I lib/eigen_3.4.0 -I lib/boost_1.84.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest      -DBOOST_DISABLE_ASSERTS         -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0  -c -o test/expressions/tests6_test.o test/expressions/tests6_test.cpp
In file included from lib/boost_1.84.0/boost/numeric/ublas/traits.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/ublas/storage.hpp:27,
                 from lib/boost_1.84.0/boost/numeric/ublas/vector.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/odeint/util/ublas_wrapper.hpp:23,
                 from lib/boost_1.84.0/boost/numeric/odeint.hpp:25,
                 from ./stan/math/prim/functor/ode_rk45.hpp:9,
                 from ./stan/math/prim/functor/integrate_ode_rk45.hpp:6,
                 from ./stan/math/prim/functor.hpp:16,
                 from ./stan/math/prim.hpp:17,
                 from ./test/expressions/expression_test_helpers.hpp:2,
                 from test/expressions/tests1_test.cpp:1:
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:111:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  111 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_construct.h:61,
                 from /usr/include/c++/13/bits/stl_tempbuf.h:61,
                 from /usr/include/c++/13/memory:66,
                 from lib/benchmark_1.5.1/googletest/googletest/include/gtest/gtest.h:57,
                 from ./test/expressions/expression_test_helpers.hpp:1:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:149:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  149 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:204:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  204 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from lib/boost_1.84.0/boost/numeric/ublas/traits.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/ublas/storage.hpp:27,
                 from lib/boost_1.84.0/boost/numeric/ublas/vector.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/odeint/util/ublas_wrapper.hpp:23,
                 from lib/boost_1.84.0/boost/numeric/odeint.hpp:25,
                 from ./stan/math/prim/functor/ode_rk45.hpp:9,
                 from ./stan/math/prim/functor/integrate_ode_rk45.hpp:6,
                 from ./stan/math/prim/functor.hpp:16,
                 from ./stan/math/prim.hpp:17,
                 from ./test/expressions/expression_test_helpers.hpp:2,
                 from test/expressions/tests6_test.cpp:1:
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:111:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  111 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_construct.h:61,
                 from /usr/include/c++/13/bits/stl_tempbuf.h:61,
                 from /usr/include/c++/13/memory:66,
                 from lib/benchmark_1.5.1/googletest/googletest/include/gtest/gtest.h:57,
                 from ./test/expressions/expression_test_helpers.hpp:1:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:149:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  149 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:204:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  204 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from lib/boost_1.84.0/boost/numeric/ublas/traits.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/ublas/storage.hpp:27,
                 from lib/boost_1.84.0/boost/numeric/ublas/vector.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/odeint/util/ublas_wrapper.hpp:23,
                 from lib/boost_1.84.0/boost/numeric/odeint.hpp:25,
                 from ./stan/math/prim/functor/ode_rk45.hpp:9,
                 from ./stan/math/prim/functor/integrate_ode_rk45.hpp:6,
                 from ./stan/math/prim/functor.hpp:16,
                 from ./stan/math/prim.hpp:17,
                 from ./test/expressions/expression_test_helpers.hpp:2,
                 from test/expressions/tests0_test.cpp:1:
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:111:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  111 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_construct.h:61,
                 from /usr/include/c++/13/bits/stl_tempbuf.h:61,
                 from /usr/include/c++/13/memory:66,
                 from lib/benchmark_1.5.1/googletest/googletest/include/gtest/gtest.h:57,
                 from ./test/expressions/expression_test_helpers.hpp:1:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:149:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  149 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:204:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  204 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from lib/boost_1.84.0/boost/numeric/ublas/traits.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/ublas/storage.hpp:27,
                 from lib/boost_1.84.0/boost/numeric/ublas/vector.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/odeint/util/ublas_wrapper.hpp:23,
                 from lib/boost_1.84.0/boost/numeric/odeint.hpp:25,
                 from ./stan/math/prim/functor/ode_rk45.hpp:9,
                 from ./stan/math/prim/functor/integrate_ode_rk45.hpp:6,
                 from ./stan/math/prim/functor.hpp:16,
                 from ./stan/math/prim.hpp:17,
                 from ./test/expressions/expression_test_helpers.hpp:2,
                 from test/expressions/tests3_test.cpp:1:
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:111:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  111 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
In file included from lib/boost_1.84.0/boost/numeric/ublas/traits.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/ublas/storage.hpp:27,
                 from lib/boost_1.84.0/boost/numeric/ublas/vector.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/odeint/util/ublas_wrapper.hpp:23,
                 from lib/boost_1.84.0/boost/numeric/odeint.hpp:25,
                 from ./stan/math/prim/functor/ode_rk45.hpp:9,
                 from ./stan/math/prim/functor/integrate_ode_rk45.hpp:6,
                 from ./stan/math/prim/functor.hpp:16,
                 from ./stan/math/prim.hpp:17,
                 from ./test/expressions/expression_test_helpers.hpp:2,
                 from test/expressions/tests5_test.cpp:1:
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:111:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  111 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_construct.h:61,
                 from /usr/include/c++/13/bits/stl_tempbuf.h:61,
                 from /usr/include/c++/13/memory:66,
                 from lib/benchmark_1.5.1/googletest/googletest/include/gtest/gtest.h:57,
                 from ./test/expressions/expression_test_helpers.hpp:1:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:149:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  149 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_construct.h:61,
                 from /usr/include/c++/13/bits/stl_tempbuf.h:61,
                 from /usr/include/c++/13/memory:66,
                 from lib/benchmark_1.5.1/googletest/googletest/include/gtest/gtest.h:57,
                 from ./test/expressions/expression_test_helpers.hpp:1:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:204:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  204 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:149:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  149 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:204:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  204 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from lib/boost_1.84.0/boost/numeric/ublas/traits.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/ublas/storage.hpp:27,
                 from lib/boost_1.84.0/boost/numeric/ublas/vector.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/odeint/util/ublas_wrapper.hpp:23,
                 from lib/boost_1.84.0/boost/numeric/odeint.hpp:25,
                 from ./stan/math/prim/functor/ode_rk45.hpp:9,
                 from ./stan/math/prim/functor/integrate_ode_rk45.hpp:6,
                 from ./stan/math/prim/functor.hpp:16,
                 from ./stan/math/prim.hpp:17,
                 from ./test/expressions/expression_test_helpers.hpp:2,
                 from test/expressions/tests4_test.cpp:1:
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:111:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  111 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_construct.h:61,
                 from /usr/include/c++/13/bits/stl_tempbuf.h:61,
                 from /usr/include/c++/13/memory:66,
                 from lib/benchmark_1.5.1/googletest/googletest/include/gtest/gtest.h:57,
                 from ./test/expressions/expression_test_helpers.hpp:1:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:149:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  149 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:204:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  204 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from lib/boost_1.84.0/boost/numeric/ublas/traits.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/ublas/storage.hpp:27,
                 from lib/boost_1.84.0/boost/numeric/ublas/vector.hpp:21,
                 from lib/boost_1.84.0/boost/numeric/odeint/util/ublas_wrapper.hpp:23,
                 from lib/boost_1.84.0/boost/numeric/odeint.hpp:25,
                 from ./stan/math/prim/functor/ode_rk45.hpp:9,
                 from ./stan/math/prim/functor/integrate_ode_rk45.hpp:6,
                 from ./stan/math/prim/functor.hpp:16,
                 from ./stan/math/prim.hpp:17,
                 from ./test/expressions/expression_test_helpers.hpp:2,
                 from test/expressions/tests2_test.cpp:1:
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:111:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  111 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_construct.h:61,
                 from /usr/include/c++/13/bits/stl_tempbuf.h:61,
                 from /usr/include/c++/13/memory:66,
                 from lib/benchmark_1.5.1/googletest/googletest/include/gtest/gtest.h:57,
                 from ./test/expressions/expression_test_helpers.hpp:1:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:149:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  149 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
lib/boost_1.84.0/boost/numeric/ublas/detail/iterator.hpp:204:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  204 |         public std::iterator<IC, T> {
      |                     ^~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
In file included from ./stan/math/rev/core/std_complex.hpp:5,
                 from ./stan/math/rev/core/operator_division.hpp:11,
                 from ./stan/math/rev/core/operator_divide_equal.hpp:5,
                 from ./stan/math/rev/core.hpp:29,
                 from ./stan/math/rev/constraint/cholesky_corr_constrain.hpp:4,
                 from ./stan/math/rev/constraint.hpp:6,
                 from ./stan/math/rev.hpp:11,
                 from ./test/expressions/expression_test_helpers.hpp:5:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’:
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = stan::math::fvar<double>; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:63:   required from ‘stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)> [with auto:50 = stan::math::fvar<double>]’
/usr/include/c++/13/type_traits:2558:26:   required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>; _Args = {const stan::math::fvar<double>&}]’
/usr/include/c++/13/type_traits:2569:55:   required from ‘struct std::__result_of_impl<false, false, stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:2574:12:   [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:78:   required from ‘stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)> [with auto:47 = stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:48 = const stan::math::fvar<double>; auto:49 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>; Args = {stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const stan::math::fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1, 0, -1, -1>, -1, -1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:229:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const fvar<double>&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&; F = pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_stan_scalar_t<T>* <anonymous> = 0; stan::require_eigen_t<T>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = fvar<double>; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests1_test.cpp:15:0:   required from here
./stan/math/prim/core/complex_base.hpp:43:31: error: no matching function for call to ‘stan::math::var_value<double>::var_value(const stan::math::fvar<double>&)’
   43 |   complex_base(const U& re) : re_(re) {}  // NOLINT(runtime/explicit)
      |                               ^~~~~~~
In file included from ./stan/math/rev/meta/is_var.hpp:5,
                 from ./stan/math/rev/meta/plain_type.hpp:5,
                 from ./stan/math/rev/meta/conditional_var_value.hpp:5,
                 from ./stan/math/rev/meta.hpp:6,
                 from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
                 from ./stan/math/rev/core.hpp:4:
./stan/math/rev/core/var.hpp:82:3: note: candidate: ‘template<class S, stan::require_convertible_t<S&, double>* <anonymous> > stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value(S) [with stan::require_convertible_t<S&, typename std::decay<_Tp>::type>* <anonymous> = S; T = double]’
   82 |   var_value(S x) : vi_(new vari_type(x, false)) {}  // NOLINT
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:82:3: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/13/bits/move.h:37,
                 from /usr/include/c++/13/bits/new_allocator.h:36,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h:33,
                 from /usr/include/c++/13/bits/allocator.h:46,
                 from /usr/include/c++/13/memory:65:
/usr/include/c++/13/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using std::enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]’:
./stan/math/prim/meta/require_helpers.hpp:19:7:   required by substitution of ‘template<class Check> using stan::require_t = std::enable_if_t<Check::value> [with Check = std::is_convertible<stan::math::fvar<double>, double>]’
./stan/math/prim/meta/require_generics.hpp:93:7:   required by substitution of ‘template<class T, class S> using stan::require_convertible_t = stan::require_t<std::is_convertible<typename std::decay<_Tp>::type, typename std::decay<_Tp2>::type> > [with T = stan::math::fvar<double>&; S = double]’
./stan/math/rev/core/var.hpp:81:66:   required from ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = stan::math::fvar<double>; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:63:   [ skipping 8 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:78:   required from ‘stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)> [with auto:47 = stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:48 = const stan::math::fvar<double>; auto:49 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>; Args = {stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const stan::math::fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1, 0, -1, -1>, -1, -1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:229:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const fvar<double>&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&; F = pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_stan_scalar_t<T>* <anonymous> = 0; stan::require_eigen_t<T>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = fvar<double>; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests1_test.cpp:15:0:   required from here
/usr/include/c++/13/type_traits:2610:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
 2610 |     using enable_if_t = typename enable_if<_Cond, _Tp>::type;
      |           ^~~~~~~~~~~
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’:
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = stan::math::fvar<double>; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:63:   required from ‘stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)> [with auto:50 = stan::math::fvar<double>]’
/usr/include/c++/13/type_traits:2558:26:   required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>; _Args = {const stan::math::fvar<double>&}]’
/usr/include/c++/13/type_traits:2569:55:   required from ‘struct std::__result_of_impl<false, false, stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:2574:12:   [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:78:   required from ‘stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)> [with auto:47 = stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:48 = const stan::math::fvar<double>; auto:49 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>; Args = {stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const stan::math::fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1, 0, -1, -1>, -1, -1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:229:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const fvar<double>&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&; F = pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_stan_scalar_t<T>* <anonymous> = 0; stan::require_eigen_t<T>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = fvar<double>; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests1_test.cpp:15:0:   required from here
./stan/math/rev/core/var.hpp:88:3: note: candidate: ‘stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value(vari_type*) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void; typename std::decay<_Tp>::type = double; vari_type = stan::math::vari_value<double>]’
   88 |   var_value(vari_type* vi) : vi_(vi) {}  // NOLINT
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:88:24: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘stan::math::var_value<double>::vari_type*’ {aka ‘stan::math::vari_value<double>*’}
   88 |   var_value(vari_type* vi) : vi_(vi) {}  // NOLINT
      |             ~~~~~~~~~~~^~
./stan/math/rev/core/var.hpp:72:3: note: candidate: ‘stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value() [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void; typename std::decay<_Tp>::type = double]’
   72 |   var_value() : vi_(nullptr) {}
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:72:3: note:   candidate expects 0 arguments, 1 provided
./stan/math/rev/core/var.hpp:40:7: note: candidate: ‘constexpr stan::math::var_value<double>::var_value(const stan::math::var_value<double>&)’
   40 | class var_value<T, require_floating_point_t<T>> {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./stan/math/rev/core/var.hpp:40:7: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘const stan::math::var_value<double>&’
./stan/math/rev/core/var.hpp:40:7: note: candidate: ‘constexpr stan::math::var_value<double>::var_value(stan::math::var_value<double>&&)’
./stan/math/rev/core/var.hpp:40:7: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘stan::math::var_value<double>&&’
In file included from ./stan/math/rev/core/std_complex.hpp:5,
                 from ./stan/math/rev/core/operator_division.hpp:11,
                 from ./stan/math/rev/core/operator_divide_equal.hpp:5,
                 from ./stan/math/rev/core.hpp:29,
                 from ./stan/math/rev/constraint/cholesky_corr_constrain.hpp:4,
                 from ./stan/math/rev/constraint.hpp:6,
                 from ./stan/math/rev.hpp:11,
                 from ./test/expressions/expression_test_helpers.hpp:5:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’:
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = int; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:63:   required from ‘stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)> [with auto:50 = stan::math::fvar<double>]’
/usr/include/c++/13/type_traits:2558:26:   required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>; _Args = {const stan::math::fvar<double>&}]’
/usr/include/c++/13/type_traits:2569:55:   required from ‘struct std::__result_of_impl<false, false, stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:2574:12:   [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1>, 1, -1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:78:   required from ‘stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)> [with auto:47 = stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:48 = const int; auto:49 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1>, 1, -1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>; Args = {stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1, 1, 1, -1>, 1, -1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:229:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const int&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&; F = pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_stan_scalar_t<T>* <anonymous> = 0; stan::require_eigen_t<T>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = int; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests6_test.cpp:58:0:   required from here
./stan/math/prim/core/complex_base.hpp:43:31: error: no matching function for call to ‘stan::math::var_value<double>::var_value(const stan::math::fvar<double>&)’
   43 |   complex_base(const U& re) : re_(re) {}  // NOLINT(runtime/explicit)
      |                               ^~~~~~~
In file included from ./stan/math/rev/meta/is_var.hpp:5,
                 from ./stan/math/rev/meta/plain_type.hpp:5,
                 from ./stan/math/rev/meta/conditional_var_value.hpp:5,
                 from ./stan/math/rev/meta.hpp:6,
                 from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
                 from ./stan/math/rev/core.hpp:4:
./stan/math/rev/core/var.hpp:82:3: note: candidate: ‘template<class S, stan::require_convertible_t<S&, double>* <anonymous> > stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value(S) [with stan::require_convertible_t<S&, typename std::decay<_Tp>::type>* <anonymous> = S; T = double]’
   82 |   var_value(S x) : vi_(new vari_type(x, false)) {}  // NOLINT
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:82:3: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/13/bits/move.h:37,
                 from /usr/include/c++/13/bits/new_allocator.h:36,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h:33,
                 from /usr/include/c++/13/bits/allocator.h:46,
                 from /usr/include/c++/13/memory:65:
/usr/include/c++/13/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using std::enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]’:
./stan/math/prim/meta/require_helpers.hpp:19:7:   required by substitution of ‘template<class Check> using stan::require_t = std::enable_if_t<Check::value> [with Check = std::is_convertible<stan::math::fvar<double>, double>]’
./stan/math/prim/meta/require_generics.hpp:93:7:   required by substitution of ‘template<class T, class S> using stan::require_convertible_t = stan::require_t<std::is_convertible<typename std::decay<_Tp>::type, typename std::decay<_Tp2>::type> > [with T = stan::math::fvar<double>&; S = double]’
./stan/math/rev/core/var.hpp:81:66:   required from ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = int; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:63:   [ skipping 8 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1>, 1, -1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:78:   required from ‘stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)> [with auto:47 = stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:48 = const int; auto:49 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1>, 1, -1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>; Args = {stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1, 1, 1, -1>, 1, -1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:229:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const int&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&; F = pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_stan_scalar_t<T>* <anonymous> = 0; stan::require_eigen_t<T>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = int; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests6_test.cpp:58:0:   required from here
/usr/include/c++/13/type_traits:2610:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
 2610 |     using enable_if_t = typename enable_if<_Cond, _Tp>::type;
      |           ^~~~~~~~~~~
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’:
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = int; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:63:   required from ‘stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)> [with auto:50 = stan::math::fvar<double>]’
/usr/include/c++/13/type_traits:2558:26:   required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>; _Args = {const stan::math::fvar<double>&}]’
/usr/include/c++/13/type_traits:2569:55:   required from ‘struct std::__result_of_impl<false, false, stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:2574:12:   [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1>, 1, -1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:78:   required from ‘stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)> [with auto:47 = stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:48 = const int; auto:49 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1>, 1, -1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>; Args = {stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1, 1, 1, -1>, 1, -1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:229:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const int&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&; F = pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_stan_scalar_t<T>* <anonymous> = 0; stan::require_eigen_t<T>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = int; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests6_test.cpp:58:0:   required from here
./stan/math/rev/core/var.hpp:88:3: note: candidate: ‘stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value(vari_type*) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void; typename std::decay<_Tp>::type = double; vari_type = stan::math::vari_value<double>]’
   88 |   var_value(vari_type* vi) : vi_(vi) {}  // NOLINT
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:88:24: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘stan::math::var_value<double>::vari_type*’ {aka ‘stan::math::vari_value<double>*’}
   88 |   var_value(vari_type* vi) : vi_(vi) {}  // NOLINT
      |             ~~~~~~~~~~~^~
./stan/math/rev/core/var.hpp:72:3: note: candidate: ‘stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value() [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void; typename std::decay<_Tp>::type = double]’
   72 |   var_value() : vi_(nullptr) {}
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:72:3: note:   candidate expects 0 arguments, 1 provided
./stan/math/rev/core/var.hpp:40:7: note: candidate: ‘constexpr stan::math::var_value<double>::var_value(const stan::math::var_value<double>&)’
   40 | class var_value<T, require_floating_point_t<T>> {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./stan/math/rev/core/var.hpp:40:7: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘const stan::math::var_value<double>&’
./stan/math/rev/core/var.hpp:40:7: note: candidate: ‘constexpr stan::math::var_value<double>::var_value(stan::math::var_value<double>&&)’
./stan/math/rev/core/var.hpp:40:7: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘stan::math::var_value<double>&&’
In file included from ./stan/math/rev/core/std_complex.hpp:5,
                 from ./stan/math/rev/core/operator_division.hpp:11,
                 from ./stan/math/rev/core/operator_divide_equal.hpp:5,
                 from ./stan/math/rev/core.hpp:29,
                 from ./stan/math/rev/constraint/cholesky_corr_constrain.hpp:4,
                 from ./stan/math/rev/constraint.hpp:6,
                 from ./stan/math/rev.hpp:11,
                 from ./test/expressions/expression_test_helpers.hpp:5:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’:
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = int; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:63:   required from ‘stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)> [with auto:50 = stan::math::fvar<double>]’
/usr/include/c++/13/type_traits:2558:26:   required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>; _Args = {const stan::math::fvar<double>&}]’
/usr/include/c++/13/type_traits:2569:55:   required from ‘struct std::__result_of_impl<false, false, stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:2574:12:   [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:78:   required from ‘stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)> [with auto:47 = stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:48 = const int; auto:49 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>; Args = {stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1, 0, -1, -1>, -1, -1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:229:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const int&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&; F = pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_stan_scalar_t<T>* <anonymous> = 0; stan::require_eigen_t<T>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = int; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests5_test.cpp:58:0:   required from here
./stan/math/prim/core/complex_base.hpp:43:31: error: no matching function for call to ‘stan::math::var_value<double>::var_value(const stan::math::fvar<double>&)’
   43 |   complex_base(const U& re) : re_(re) {}  // NOLINT(runtime/explicit)
      |                               ^~~~~~~
In file included from ./stan/math/rev/meta/is_var.hpp:5,
                 from ./stan/math/rev/meta/plain_type.hpp:5,
                 from ./stan/math/rev/meta/conditional_var_value.hpp:5,
                 from ./stan/math/rev/meta.hpp:6,
                 from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
                 from ./stan/math/rev/core.hpp:4:
./stan/math/rev/core/var.hpp:82:3: note: candidate: ‘template<class S, stan::require_convertible_t<S&, double>* <anonymous> > stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value(S) [with stan::require_convertible_t<S&, typename std::decay<_Tp>::type>* <anonymous> = S; T = double]’
   82 |   var_value(S x) : vi_(new vari_type(x, false)) {}  // NOLINT
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:82:3: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/13/bits/move.h:37,
                 from /usr/include/c++/13/bits/new_allocator.h:36,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h:33,
                 from /usr/include/c++/13/bits/allocator.h:46,
                 from /usr/include/c++/13/memory:65:
/usr/include/c++/13/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using std::enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]’:
./stan/math/prim/meta/require_helpers.hpp:19:7:   required by substitution of ‘template<class Check> using stan::require_t = std::enable_if_t<Check::value> [with Check = std::is_convertible<stan::math::fvar<double>, double>]’
./stan/math/prim/meta/require_generics.hpp:93:7:   required by substitution of ‘template<class T, class S> using stan::require_convertible_t = stan::require_t<std::is_convertible<typename std::decay<_Tp>::type, typename std::decay<_Tp2>::type> > [with T = stan::math::fvar<double>&; S = double]’
./stan/math/rev/core/var.hpp:81:66:   required from ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = int; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:63:   [ skipping 8 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:78:   required from ‘stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)> [with auto:47 = stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:48 = const int; auto:49 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>; Args = {stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1, 0, -1, -1>, -1, -1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:229:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const int&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&; F = pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_stan_scalar_t<T>* <anonymous> = 0; stan::require_eigen_t<T>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = int; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests5_test.cpp:58:0:   required from here
/usr/include/c++/13/type_traits:2610:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
 2610 |     using enable_if_t = typename enable_if<_Cond, _Tp>::type;
      |           ^~~~~~~~~~~
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’:
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = int; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:63:   required from ‘stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)> [with auto:50 = stan::math::fvar<double>]’
/usr/include/c++/13/type_traits:2558:26:   required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>; _Args = {const stan::math::fvar<double>&}]’
/usr/include/c++/13/type_traits:2569:55:   required from ‘struct std::__result_of_impl<false, false, stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:2574:12:   [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:78:   required from ‘stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)> [with auto:47 = stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:48 = const int; auto:49 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&, pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>; Args = {stan::math::pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1, 0, -1, -1>, -1, -1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:229:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const int&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&; F = pow<int, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> > >(const int&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_stan_scalar_t<T>* <anonymous> = 0; stan::require_eigen_t<T>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = int; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, -1>, -1, -1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests5_test.cpp:58:0:   required from here
./stan/math/rev/core/var.hpp:88:3: note: candidate: ‘stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value(vari_type*) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void; typename std::decay<_Tp>::type = double; vari_type = stan::math::vari_value<double>]’
   88 |   var_value(vari_type* vi) : vi_(vi) {}  // NOLINT
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:88:24: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘stan::math::var_value<double>::vari_type*’ {aka ‘stan::math::vari_value<double>*’}
   88 |   var_value(vari_type* vi) : vi_(vi) {}  // NOLINT
      |             ~~~~~~~~~~~^~
./stan/math/rev/core/var.hpp:72:3: note: candidate: ‘stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value() [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void; typename std::decay<_Tp>::type = double]’
   72 |   var_value() : vi_(nullptr) {}
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:72:3: note:   candidate expects 0 arguments, 1 provided
./stan/math/rev/core/var.hpp:40:7: note: candidate: ‘constexpr stan::math::var_value<double>::var_value(const stan::math::var_value<double>&)’
   40 | class var_value<T, require_floating_point_t<T>> {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./stan/math/rev/core/var.hpp:40:7: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘const stan::math::var_value<double>&’
./stan/math/rev/core/var.hpp:40:7: note: candidate: ‘constexpr stan::math::var_value<double>::var_value(stan::math::var_value<double>&&)’
./stan/math/rev/core/var.hpp:40:7: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘stan::math::var_value<double>&&’
In file included from ./stan/math/rev/core/std_complex.hpp:5,
                 from ./stan/math/rev/core/operator_division.hpp:11,
                 from ./stan/math/rev/core/operator_divide_equal.hpp:5,
                 from ./stan/math/rev/core.hpp:29,
                 from ./stan/math/rev/constraint/cholesky_corr_constrain.hpp:4,
                 from ./stan/math/rev/constraint.hpp:6,
                 from ./stan/math/rev.hpp:11,
                 from ./test/expressions/expression_test_helpers.hpp:5:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’:
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = stan::math::fvar<double>; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:63:   required from ‘stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)> [with auto:50 = stan::math::fvar<double>]’
/usr/include/c++/13/type_traits:2558:26:   required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>; _Args = {const stan::math::fvar<double>&}]’
/usr/include/c++/13/type_traits:2569:55:   required from ‘struct std::__result_of_impl<false, false, stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:2574:12:   [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1>, 1, -1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:78:   required from ‘stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)> [with auto:47 = stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:48 = const stan::math::fvar<double>; auto:49 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1>, 1, -1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>; Args = {stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const stan::math::fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1, 1, 1, -1>, 1, -1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:229:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const fvar<double>&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&; F = pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_stan_scalar_t<T>* <anonymous> = 0; stan::require_eigen_t<T>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = fvar<double>; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests4_test.cpp:40:0:   required from here
./stan/math/prim/core/complex_base.hpp:43:31: error: no matching function for call to ‘stan::math::var_value<double>::var_value(const stan::math::fvar<double>&)’
   43 |   complex_base(const U& re) : re_(re) {}  // NOLINT(runtime/explicit)
      |                               ^~~~~~~
In file included from ./stan/math/rev/meta/is_var.hpp:5,
                 from ./stan/math/rev/meta/plain_type.hpp:5,
                 from ./stan/math/rev/meta/conditional_var_value.hpp:5,
                 from ./stan/math/rev/meta.hpp:6,
                 from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
                 from ./stan/math/rev/core.hpp:4:
./stan/math/rev/core/var.hpp:82:3: note: candidate: ‘template<class S, stan::require_convertible_t<S&, double>* <anonymous> > stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value(S) [with stan::require_convertible_t<S&, typename std::decay<_Tp>::type>* <anonymous> = S; T = double]’
   82 |   var_value(S x) : vi_(new vari_type(x, false)) {}  // NOLINT
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:82:3: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/13/bits/move.h:37,
                 from /usr/include/c++/13/bits/new_allocator.h:36,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h:33,
                 from /usr/include/c++/13/bits/allocator.h:46,
                 from /usr/include/c++/13/memory:65:
/usr/include/c++/13/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using std::enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]’:
./stan/math/prim/meta/require_helpers.hpp:19:7:   required by substitution of ‘template<class Check> using stan::require_t = std::enable_if_t<Check::value> [with Check = std::is_convertible<stan::math::fvar<double>, double>]’
./stan/math/prim/meta/require_generics.hpp:93:7:   required by substitution of ‘template<class T, class S> using stan::require_convertible_t = stan::require_t<std::is_convertible<typename std::decay<_Tp>::type, typename std::decay<_Tp2>::type> > [with T = stan::math::fvar<double>&; S = double]’
./stan/math/rev/core/var.hpp:81:66:   required from ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = stan::math::fvar<double>; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:63:   [ skipping 8 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1>, 1, -1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:78:   required from ‘stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)> [with auto:47 = stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:48 = const stan::math::fvar<double>; auto:49 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1>, 1, -1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>; Args = {stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const stan::math::fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1, 1, 1, -1>, 1, -1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:229:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const fvar<double>&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&; F = pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_stan_scalar_t<T>* <anonymous> = 0; stan::require_eigen_t<T>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = fvar<double>; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests4_test.cpp:40:0:   required from here
/usr/include/c++/13/type_traits:2610:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
 2610 |     using enable_if_t = typename enable_if<_Cond, _Tp>::type;
      |           ^~~~~~~~~~~
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’:
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = stan::math::fvar<double>; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:63:   required from ‘stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)> [with auto:50 = stan::math::fvar<double>]’
/usr/include/c++/13/type_traits:2558:26:   required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>; _Args = {const stan::math::fvar<double>&}]’
/usr/include/c++/13/type_traits:2569:55:   required from ‘struct std::__result_of_impl<false, false, stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:2574:12:   [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>::<lambda(const auto:50&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1>, 1, -1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:232:78:   required from ‘stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)> [with auto:47 = stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:48 = const stan::math::fvar<double>; auto:49 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1>, 1, -1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&, pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:47&, auto:48&, auto:49&)>; Args = {stan::math::pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const stan::math::fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, 1, -1, 1, 1, -1>, 1, -1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:229:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const fvar<double>&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&; F = pow<fvar<double>, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> > >(const fvar<double>&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_stan_scalar_t<T>* <anonymous> = 0; stan::require_eigen_t<T>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = fvar<double>; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, 1, -1>, 1, -1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests4_test.cpp:40:0:   required from here
./stan/math/rev/core/var.hpp:88:3: note: candidate: ‘stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value(vari_type*) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void; typename std::decay<_Tp>::type = double; vari_type = stan::math::vari_value<double>]’
   88 |   var_value(vari_type* vi) : vi_(vi) {}  // NOLINT
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:88:24: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘stan::math::var_value<double>::vari_type*’ {aka ‘stan::math::vari_value<double>*’}
   88 |   var_value(vari_type* vi) : vi_(vi) {}  // NOLINT
      |             ~~~~~~~~~~~^~
./stan/math/rev/core/var.hpp:72:3: note: candidate: ‘stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value() [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void; typename std::decay<_Tp>::type = double]’
   72 |   var_value() : vi_(nullptr) {}
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:72:3: note:   candidate expects 0 arguments, 1 provided
./stan/math/rev/core/var.hpp:40:7: note: candidate: ‘constexpr stan::math::var_value<double>::var_value(const stan::math::var_value<double>&)’
   40 | class var_value<T, require_floating_point_t<T>> {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./stan/math/rev/core/var.hpp:40:7: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘const stan::math::var_value<double>&’
./stan/math/rev/core/var.hpp:40:7: note: candidate: ‘constexpr stan::math::var_value<double>::var_value(stan::math::var_value<double>&&)’
./stan/math/rev/core/var.hpp:40:7: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘stan::math::var_value<double>&&’
In file included from ./stan/math/rev/core/std_complex.hpp:5,
                 from ./stan/math/rev/core/operator_division.hpp:11,
                 from ./stan/math/rev/core/operator_divide_equal.hpp:5,
                 from ./stan/math/rev/core.hpp:29,
                 from ./stan/math/rev/constraint/cholesky_corr_constrain.hpp:4,
                 from ./stan/math/rev/constraint.hpp:6,
                 from ./stan/math/rev.hpp:11,
                 from ./test/expressions/expression_test_helpers.hpp:5:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’:
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = stan::math::fvar<double>; auto:667 = stan::math::fvar<double>]’
/usr/include/c++/13/type_traits:2558:26:   required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>; _Args = {const stan::math::fvar<double>&, const stan::math::fvar<double>&}]’
/usr/include/c++/13/type_traits:2569:55:   required from ‘struct std::__result_of_impl<false, false, stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const stan::math::fvar<double>&, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:2574:12:   required from ‘struct std::__invoke_result<stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const stan::math::fvar<double>&, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:3061:12:   [ skipping 4 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseBinaryOp.h:77:7:   required from ‘class Eigen::CwiseBinaryOp<stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:60:51:   required from ‘stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:34&, auto:35&, auto:36&)> [with auto:34 = stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:35 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >; auto:36 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:34&, auto:35&, auto:36&)>; Args = {stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1, 0, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1, 0, -1, 1>, -1, 1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:58:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&; F = pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_all_eigen_t<T_desired, T_actual>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests2_test.cpp:18:0:   required from here
./stan/math/prim/core/complex_base.hpp:43:31: error: no matching function for call to ‘stan::math::var_value<double>::var_value(const stan::math::fvar<double>&)’
   43 |   complex_base(const U& re) : re_(re) {}  // NOLINT(runtime/explicit)
      |                               ^~~~~~~
In file included from ./stan/math/rev/meta/is_var.hpp:5,
                 from ./stan/math/rev/meta/plain_type.hpp:5,
                 from ./stan/math/rev/meta/conditional_var_value.hpp:5,
                 from ./stan/math/rev/meta.hpp:6,
                 from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
                 from ./stan/math/rev/core.hpp:4:
./stan/math/rev/core/var.hpp:82:3: note: candidate: ‘template<class S, stan::require_convertible_t<S&, double>* <anonymous> > stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value(S) [with stan::require_convertible_t<S&, typename std::decay<_Tp>::type>* <anonymous> = S; T = double]’
   82 |   var_value(S x) : vi_(new vari_type(x, false)) {}  // NOLINT
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:82:3: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/13/bits/move.h:37,
                 from /usr/include/c++/13/bits/new_allocator.h:36,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h:33,
                 from /usr/include/c++/13/bits/allocator.h:46,
                 from /usr/include/c++/13/memory:65:
/usr/include/c++/13/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using std::enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]’:
./stan/math/prim/meta/require_helpers.hpp:19:7:   required by substitution of ‘template<class Check> using stan::require_t = std::enable_if_t<Check::value> [with Check = std::is_convertible<stan::math::fvar<double>, double>]’
./stan/math/prim/meta/require_generics.hpp:93:7:   required by substitution of ‘template<class T, class S> using stan::require_convertible_t = stan::require_t<std::is_convertible<typename std::decay<_Tp>::type, typename std::decay<_Tp2>::type> > [with T = stan::math::fvar<double>&; S = double]’
./stan/math/rev/core/var.hpp:81:66:   required from ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = stan::math::fvar<double>; auto:667 = stan::math::fvar<double>]’
/usr/include/c++/13/type_traits:2558:26:   [ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseBinaryOp.h:77:7:   required from ‘class Eigen::CwiseBinaryOp<stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:60:51:   required from ‘stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:34&, auto:35&, auto:36&)> [with auto:34 = stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:35 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >; auto:36 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:34&, auto:35&, auto:36&)>; Args = {stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1, 0, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1, 0, -1, 1>, -1, 1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:58:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&; F = pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_all_eigen_t<T_desired, T_actual>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests2_test.cpp:18:0:   required from here
/usr/include/c++/13/type_traits:2610:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
 2610 |     using enable_if_t = typename enable_if<_Cond, _Tp>::type;
      |           ^~~~~~~~~~~
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’:
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = stan::math::fvar<double>; auto:667 = stan::math::fvar<double>]’
/usr/include/c++/13/type_traits:2558:26:   required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>; _Args = {const stan::math::fvar<double>&, const stan::math::fvar<double>&}]’
/usr/include/c++/13/type_traits:2569:55:   required from ‘struct std::__result_of_impl<false, false, stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const stan::math::fvar<double>&, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:2574:12:   required from ‘struct std::__invoke_result<stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const stan::math::fvar<double>&, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:3061:12:   [ skipping 4 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseBinaryOp.h:77:7:   required from ‘class Eigen::CwiseBinaryOp<stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:60:51:   required from ‘stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:34&, auto:35&, auto:36&)> [with auto:34 = stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>; auto:35 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >; auto:36 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:34&, auto:35&, auto:36&)>; Args = {stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1, 0, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1, 0, -1, 1>, -1, 1, false> >&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:58:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&; T2 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&; F = pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> > >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&)::<lambda(const auto:666&, const auto:667&)>; stan::require_all_eigen_t<T_desired, T_actual>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >; T2 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests2_test.cpp:18:0:   required from here
./stan/math/rev/core/var.hpp:88:3: note: candidate: ‘stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value(vari_type*) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void; typename std::decay<_Tp>::type = double; vari_type = stan::math::vari_value<double>]’
   88 |   var_value(vari_type* vi) : vi_(vi) {}  // NOLINT
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:88:24: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘stan::math::var_value<double>::vari_type*’ {aka ‘stan::math::vari_value<double>*’}
   88 |   var_value(vari_type* vi) : vi_(vi) {}  // NOLINT
      |             ~~~~~~~~~~~^~
./stan/math/rev/core/var.hpp:72:3: note: candidate: ‘stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value() [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void; typename std::decay<_Tp>::type = double]’
   72 |   var_value() : vi_(nullptr) {}
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:72:3: note:   candidate expects 0 arguments, 1 provided
./stan/math/rev/core/var.hpp:40:7: note: candidate: ‘constexpr stan::math::var_value<double>::var_value(const stan::math::var_value<double>&)’
   40 | class var_value<T, require_floating_point_t<T>> {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./stan/math/rev/core/var.hpp:40:7: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘const stan::math::var_value<double>&’
./stan/math/rev/core/var.hpp:40:7: note: candidate: ‘constexpr stan::math::var_value<double>::var_value(stan::math::var_value<double>&&)’
./stan/math/rev/core/var.hpp:40:7: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘stan::math::var_value<double>&&’
In file included from ./stan/math/rev/core/std_complex.hpp:5,
                 from ./stan/math/rev/core/operator_division.hpp:11,
                 from ./stan/math/rev/core/operator_divide_equal.hpp:5,
                 from ./stan/math/rev/core.hpp:29,
                 from ./stan/math/rev/constraint/cholesky_corr_constrain.hpp:4,
                 from ./stan/math/rev/constraint.hpp:6,
                 from ./stan/math/rev.hpp:11,
                 from ./test/expressions/expression_test_helpers.hpp:5:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’:
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = stan::math::fvar<double>; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:206:63:   required from ‘stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)>::<lambda(const auto:46&)> [with auto:46 = stan::math::fvar<double>]’
/usr/include/c++/13/type_traits:2558:26:   required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)>::<lambda(const auto:46&)>; _Args = {const stan::math::fvar<double>&}]’
/usr/include/c++/13/type_traits:2569:55:   required from ‘struct std::__result_of_impl<false, false, stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)>::<lambda(const auto:46&)>, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:2574:12:   [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)>::<lambda(const auto:46&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:206:78:   required from ‘stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)> [with auto:43 = stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>; auto:44 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >; auto:45 = const stan::math::fvar<double>]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)>; Args = {stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1, 0, -1, 1>, -1, 1, false> >&, const stan::math::fvar<double>&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:203:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&; T2 = const fvar<double>&; F = pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >; T2 = fvar<double>; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests3_test.cpp:40:0:   required from here
./stan/math/prim/core/complex_base.hpp:43:31: error: no matching function for call to ‘stan::math::var_value<double>::var_value(const stan::math::fvar<double>&)’
   43 |   complex_base(const U& re) : re_(re) {}  // NOLINT(runtime/explicit)
      |                               ^~~~~~~
In file included from ./stan/math/rev/meta/is_var.hpp:5,
                 from ./stan/math/rev/meta/plain_type.hpp:5,
                 from ./stan/math/rev/meta/conditional_var_value.hpp:5,
                 from ./stan/math/rev/meta.hpp:6,
                 from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
                 from ./stan/math/rev/core.hpp:4:
./stan/math/rev/core/var.hpp:82:3: note: candidate: ‘template<class S, stan::require_convertible_t<S&, double>* <anonymous> > stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value(S) [with stan::require_convertible_t<S&, typename std::decay<_Tp>::type>* <anonymous> = S; T = double]’
   82 |   var_value(S x) : vi_(new vari_type(x, false)) {}  // NOLINT
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:82:3: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/13/bits/move.h:37,
                 from /usr/include/c++/13/bits/new_allocator.h:36,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h:33,
                 from /usr/include/c++/13/bits/allocator.h:46,
                 from /usr/include/c++/13/memory:65:
/usr/include/c++/13/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using std::enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]’:
./stan/math/prim/meta/require_helpers.hpp:19:7:   required by substitution of ‘template<class Check> using stan::require_t = std::enable_if_t<Check::value> [with Check = std::is_convertible<stan::math::fvar<double>, double>]’
./stan/math/prim/meta/require_generics.hpp:93:7:   required by substitution of ‘template<class T, class S> using stan::require_convertible_t = stan::require_t<std::is_convertible<typename std::decay<_Tp>::type, typename std::decay<_Tp2>::type> > [with T = stan::math::fvar<double>&; S = double]’
./stan/math/rev/core/var.hpp:81:66:   required from ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = stan::math::fvar<double>; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:206:63:   [ skipping 8 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)>::<lambda(const auto:46&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:206:78:   required from ‘stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)> [with auto:43 = stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>; auto:44 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >; auto:45 = const stan::math::fvar<double>]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)>; Args = {stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1, 0, -1, 1>, -1, 1, false> >&, const stan::math::fvar<double>&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:203:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&; T2 = const fvar<double>&; F = pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >; T2 = fvar<double>; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests3_test.cpp:40:0:   required from here
/usr/include/c++/13/type_traits:2610:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
 2610 |     using enable_if_t = typename enable_if<_Cond, _Tp>::type;
      |           ^~~~~~~~~~~
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_base(const U&) [with U = stan::math::fvar<double>; ValueType = stan::math::var_value<double>]’:
./stan/math/rev/core/std_complex.hpp:46:35:   required from ‘std::complex<stan::math::var_value<double> >::complex(const U&) [with U = stan::math::fvar<double>; <template-parameter-1-2> = void]’
./stan/math/rev/fun/pow.hpp:420:0:   required from ‘stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> [with auto:666 = stan::math::fvar<double>; auto:667 = stan::math::fvar<double>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:206:63:   required from ‘stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)>::<lambda(const auto:46&)> [with auto:46 = stan::math::fvar<double>]’
/usr/include/c++/13/type_traits:2558:26:   required by substitution of ‘template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)>::<lambda(const auto:46&)>; _Args = {const stan::math::fvar<double>&}]’
/usr/include/c++/13/type_traits:2569:55:   required from ‘struct std::__result_of_impl<false, false, stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)>::<lambda(const auto:46&)>, const stan::math::fvar<double>&>’
/usr/include/c++/13/type_traits:2574:12:   [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
lib/eigen_3.4.0/Eigen/src/Core/CwiseUnaryOp.h:55:7:   required from ‘class Eigen::CwiseUnaryOp<stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)>::<lambda(const auto:46&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> > >’
./stan/math/prim/functor/apply_scalar_binary.hpp:206:78:   required from ‘stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)> [with auto:43 = stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>; auto:44 = const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >; auto:45 = const stan::math::fvar<double>]’
./stan/math/prim/meta/holder.hpp:370:41:   required by substitution of ‘template<class F, class ... Args, stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> > auto stan::math::make_holder(const F&, Args&& ...) [with F = stan::math::apply_scalar_binary<const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&, pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>&&)::<lambda(auto:43&, auto:44&, auto:45&)>; Args = {stan::math::pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>, const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1, 0, -1, 1>, -1, 1, false> >&, const stan::math::fvar<double>&}; stan::require_plain_type_t<decltype (declval<F>()((declval<Args&>)()...))>* <anonymous> = <missing>]’
./stan/math/prim/functor/apply_scalar_binary.hpp:203:21:   required from ‘auto stan::math::apply_scalar_binary(T1&&, T2&&, F&&) [with T1 = const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&; T2 = const fvar<double>&; F = pow<Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >, fvar<double> >(const Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >&, const fvar<double>&)::<lambda(const auto:666&, const auto:667&)>; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0]’
./stan/math/rev/fun/pow.hpp:419:0:   required from ‘auto stan::math::pow(const T1&, const T2&) [with T1 = Eigen::CwiseUnaryOp<stan::test::counterOp<fvar<double> >, const Eigen::Block<Eigen::Matrix<fvar<double>, -1, 1>, -1, 1, false> >; T2 = fvar<double>; stan::require_any_container_t<T1, T2>* <anonymous> = 0; stan::require_all_not_matrix_st<stan::is_var, T1, T2>* <anonymous> = 0; stan::require_any_not_st_arithmetic<EigMat, T>* <anonymous> = 0]’
test/expressions/tests3_test.cpp:40:0:   required from here
./stan/math/rev/core/var.hpp:88:3: note: candidate: ‘stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value(vari_type*) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void; typename std::decay<_Tp>::type = double; vari_type = stan::math::vari_value<double>]’
   88 |   var_value(vari_type* vi) : vi_(vi) {}  // NOLINT
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:88:24: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘stan::math::var_value<double>::vari_type*’ {aka ‘stan::math::vari_value<double>*’}
   88 |   var_value(vari_type* vi) : vi_(vi) {}  // NOLINT
      |             ~~~~~~~~~~~^~
./stan/math/rev/core/var.hpp:72:3: note: candidate: ‘stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::var_value() [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void; typename std::decay<_Tp>::type = double]’
   72 |   var_value() : vi_(nullptr) {}
      |   ^~~~~~~~~
./stan/math/rev/core/var.hpp:72:3: note:   candidate expects 0 arguments, 1 provided
./stan/math/rev/core/var.hpp:40:7: note: candidate: ‘constexpr stan::math::var_value<double>::var_value(const stan::math::var_value<double>&)’
   40 | class var_value<T, require_floating_point_t<T>> {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./stan/math/rev/core/var.hpp:40:7: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘const stan::math::var_value<double>&’
./stan/math/rev/core/var.hpp:40:7: note: candidate: ‘constexpr stan::math::var_value<double>::var_value(stan::math::var_value<double>&&)’
./stan/math/rev/core/var.hpp:40:7: note:   no known conversion for argument 1 from ‘const stan::math::fvar<double>’ to ‘stan::math::var_value<double>&&’
make: *** [<builtin>: test/expressions/tests4_test.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [<builtin>: test/expressions/tests5_test.o] Error 1
make: *** [<builtin>: test/expressions/tests1_test.o] Error 1
make: *** [<builtin>: test/expressions/tests2_test.o] Error 1
make: *** [<builtin>: test/expressions/tests6_test.o] Error 1
make: *** [<builtin>: test/expressions/tests3_test.o] Error 1
rm test/expressions/tests0_test.o
make -j7 test/expressions/tests0_test test/expressions/tests1_test test/expressions/tests2_test test/expressions/tests3_test test/expressions/tests4_test test/expressions/tests5_test test/expressions/tests6_test test/expressions/tests7_test test/expressions/tests8_test test/expressions/tests9_test test/expressions/tests10_test test/expressions/tests11_test test/expressions/tests12_test test/expressions/tests13_test test/expressions/tests14_test test/expressions/tests15_test test/expressions/tests16_test test/expressions/tests17_test test/expressions/tests18_test test/expressions/tests19_test test/expressions/tests20_test test/expressions/tests21_test test/expressions/tests22_test test/expressions/tests23_test test/expressions/tests24_test test/expressions/tests25_test test/expressions/tests26_test test/expressions/tests27_test failed
exit now (09/26/24 10:19:18 EDT)
2
------------------------------------------------------------
make -j7 test/expressions/tests0_test test/expressions/tests1_test test/expressions/tests2_test test/expressions/tests3_test test/expressions/tests4_test test/expressions/tests5_test test/expressions/tests6_test test/expressions/tests7_test test/expressions/tests8_test test/expressions/tests9_test test/expressions/tests10_test test/expressions/tests11_test test/expressions/tests12_test test/expressions/tests13_test test/expressions/tests14_test test/expressions/tests15_test test/expressions/tests16_test test/expressions/tests17_test test/expressions/tests18_test test/expressions/tests19_test test/expressions/tests20_test test/expressions/tests21_test test/expressions/tests22_test test/expressions/tests23_test test/expressions/tests24_test test/expressions/tests25_test test/expressions/tests26_test test/expressions/tests27_test

@SteveBronder
Copy link
Collaborator

SteveBronder commented Sep 26, 2024

There are a ton of changes in 836a5ef, but I think they fix the problem and simplify the code a lot. I got rid of a bunch of the overloads and use a constexpr if inside of the functions for some cases like complex types.

The one huge change is that I put rev in front of fwd for mix.hpp. I think that makes sense because we want fwd to have access to rev? The tests would not compile if I did not do that

@WardBrian
Copy link
Member Author

WardBrian commented Sep 26, 2024

@SteveBronder it looks like some merge conflicts got checked in

I’m not sure about the include order, it sounds kind of like the opposite of stan-dev/stan#3294 where we moved rev after fwd?

@SteveBronder
Copy link
Collaborator

SteveBronder commented Sep 28, 2024

I need to fix up the docs and then this is good to merge

@stan-buildbot
Copy link
Contributor


Name Old Result New Result Ratio Performance change( 1 - new / old )
arma/arma.stan 0.37 0.34 1.09 8.22% faster
low_dim_corr_gauss/low_dim_corr_gauss.stan 0.01 0.01 1.11 10.04% faster
gp_regr/gen_gp_data.stan 0.03 0.03 0.98 -2.42% slower
gp_regr/gp_regr.stan 0.1 0.11 0.92 -8.23% slower
sir/sir.stan 74.31 72.75 1.02 2.1% faster
irt_2pl/irt_2pl.stan 4.81 4.43 1.08 7.78% faster
eight_schools/eight_schools.stan 0.08 0.06 1.32 24.25% faster
pkpd/sim_one_comp_mm_elim_abs.stan 0.27 0.26 1.03 3.16% faster
pkpd/one_comp_mm_elim_abs.stan 20.68 20.98 0.99 -1.45% slower
garch/garch.stan 0.5 0.46 1.09 8.5% faster
low_dim_gauss_mix/low_dim_gauss_mix.stan 2.92 2.85 1.02 2.42% faster
arK/arK.stan 1.91 1.85 1.03 3.01% faster
gp_pois_regr/gp_pois_regr.stan 3.03 2.98 1.01 1.43% faster
low_dim_gauss_mix_collapse/low_dim_gauss_mix_collapse.stan 9.44 9.14 1.03 3.19% faster
performance.compilation 207.72 202.69 1.02 2.42% faster
Mean result: 1.0511335940343132

Jenkins Console Log
Blue Ocean
Commit hash: 2c8bf6d3d4fe497e1d8ff310ce5e5f26b1925faa


Machine information No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal

CPU:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 46 bits physical, 48 bits virtual
CPU(s): 80
On-line CPU(s) list: 0-79
Thread(s) per core: 2
Core(s) per socket: 20
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz
Stepping: 4
CPU MHz: 2400.000
CPU max MHz: 3700.0000
CPU min MHz: 1000.0000
BogoMIPS: 4800.00
Virtualization: VT-x
L1d cache: 1.3 MiB
L1i cache: 1.3 MiB
L2 cache: 40 MiB
L3 cache: 55 MiB
NUMA node0 CPU(s): 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78
NUMA node1 CPU(s): 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79
Vulnerability Gather data sampling: Mitigation; Microcode
Vulnerability Itlb multihit: KVM: Mitigation: VMX disabled
Vulnerability L1tf: Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable
Vulnerability Mds: Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Meltdown: Mitigation; PTI
Vulnerability Mmio stale data: Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Mitigation; IBRS
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; IBRS; IBPB conditional; STIBP conditional; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Mitigation; Clear CPU buffers; SMT vulnerable
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd mba ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req pku ospke md_clear flush_l1d arch_capabilities

G++:
g++ (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Clang:
clang version 10.0.0-4ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

@WardBrian
Copy link
Member Author

Latest commit passed on clang 19 (https://jenkins.flatironinstitute.org/blue/organizations/jenkins/Stan%2FBleedingEdgeCompilersMonthly/detail/BleedingEdgeCompilersMonthly/222/pipeline/171) thanks @serban-nicusor-toptal for helping with the CI pipeline debugging

Copy link
Member Author

@WardBrian WardBrian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't approve a PR I myself opened, but this looks good @SteveBronder

@SteveBronder SteveBronder merged commit 67d3c88 into develop Sep 30, 2024
8 checks passed
@WardBrian WardBrian deleted the fix/pow-overload-resolution branch September 30, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation failures under LLVM 19
3 participants