Running ‘testthat.R’ [157s/157s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Part of the rstanarm package for estimating model parameters
  > # Copyright (C) 2015 Trustees of Columbia University
  > # 
  > # This program is free software; you can redistribute it and/or
  > # modify it under the terms of the GNU General Public License
  > # as published by the Free Software Foundation; either version 3
  > # of the License, or (at your option) any later version.
  > # 
  > # This program is distributed in the hope that it will be useful,
  > # but WITHOUT ANY WARRANTY; without even the implied warranty of
  > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  > # GNU General Public License for more details.
  > # 
  > # You should have received a copy of the GNU General Public License
  > # along with this program; if not, write to the Free Software
  > # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  > 
  > library(testthat)
  > suppressPackageStartupMessages(library(rstanarm))
  > Sys.unsetenv("R_TESTS")
  > o <- utils::capture.output(example(example_model, echo = FALSE))
  > if (.Platform$OS.type != "windows") { # || .Platform$r_arch != "i386"
  +   test_check("rstanarm", invert = FALSE,
  +              filter = if (Sys.getenv("NOT_CRAN") != "true") "stan_functions")
  + }
  using C++ compiler: ‘clang version 16.0.6’
  using C++17
  make[1]: Entering directory '/tmp/Rtmp0SiQL9/working_dir/Rtmp1Komrz/sourceCpp-x86_64-pc-linux-gnu-1.0.11/sourcecpp_3355f1577d6587'
  make[1]: Leaving directory '/tmp/Rtmp0SiQL9/working_dir/Rtmp1Komrz/sourceCpp-x86_64-pc-linux-gnu-1.0.11/sourcecpp_3355f1577d6587'
  make[1]: Entering directory '/tmp/Rtmp0SiQL9/working_dir/Rtmp1Komrz/sourceCpp-x86_64-pc-linux-gnu-1.0.11/sourcecpp_3355f1577d6587'
  /usr/local/clang16/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG   -I"/data/gannet/ripley/R/test-clang/Rcpp/include/"  -I"/tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/"  -I"/tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/unsupported"  -I"/tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include" -I"/data/gannet/ripley/R/test-clang/StanHeaders/include/src/"  -I"/data/gannet/ripley/R/test-clang/StanHeaders/include/"  -I"/data/gannet/ripley/R/test-clang/RcppParallel/include/"  -I"/data/gannet/ripley/R/test-clang/rstan/include" -DEIGEN_NO_DEBUG  -DBOOST_DISABLE_ASSERTS  -DBOOST_PENDING_INTEGER_LOG2_HPP  -DSTAN_THREADS  -DUSE_STANC3 -DSTRICT_R_HEADERS  -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION  -DBOOST_NO_AUTO_PTR  -include '/data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp'  -D_REENTRANT -DRCPP_PARALLEL_USE_TBB=1   -I"/data/gannet/ripley/R/test-clang/Rcpp/include" -I"/data/gannet/ripley/R/test-clang/StanHeaders/include" -I"/data/gannet/ripley/R/test-clang/rstan/include" -I"/data/gannet/ripley/R/test-clang/RcppEigen/include" -I"/data/gannet/ripley/R/test-clang/BH/include" -I"/tmp/Rtmp0SiQL9/working_dir/Rtmp1Komrz/sourceCpp-x86_64-pc-linux-gnu-1.0.11" -isystem /usr/local/clang16/include -I/usr/local/clang/include    -fpic  -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3  -c file3355f161b61ff1.cpp -o file3355f161b61ff1.o
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:540:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:2:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/LU:47:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:3:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Cholesky:12:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Jacobi:29:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:3:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Cholesky:43:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:4:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/QR:15:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Householder:27:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:4:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/QR:48:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:5:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/SVD:48:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:6:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Geometry:58:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:7:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Eigenvalues:58:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Sparse:26:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/SparseCore:61:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
        Index count = 0;
              ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Sparse:26:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/SparseCore:66:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Sparse:27:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/OrderingMethods:71:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Sparse:29:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/SparseCholesky:43:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Sparse:31:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/SparseLU:33:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable]
    Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree 
          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
    Index nsuper_et = 0; // Number of relaxed snodes in the original etree 
          ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Sparse:32:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/SparseQR:34:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Sparse:33:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/IterativeLinearSolvers:46:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file3355f161b61ff1.cpp:7:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta.hpp:175:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/append_return_type.hpp:5:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/return_type.hpp:5:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/promote_args.hpp:4:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/math/tools/promotion.hpp:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/math/tools/config.hpp:28:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/config.hpp:48:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/config/stdlib/libcpp.hpp:98:11: warning: 'BOOST_NO_AUTO_PTR' macro redefined [-Wmacro-redefined]
  #  define BOOST_NO_AUTO_PTR
            ^
  <command line>:9:9: note: previous definition is here
  #define BOOST_NO_AUTO_PTR 1
          ^
  In file included from file3355f161b61ff1.cpp:10:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/RcppEigenForward.h:32:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/CholmodSupport:45:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file3355f161b61ff1.cpp:10:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/RcppEigenForward.h:35:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/unsupported/Eigen/KroneckerProduct:34:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file3355f161b61ff1.cpp:10:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/RcppEigenForward.h:39:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/unsupported/Eigen/Polynomials:135:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file3355f161b61ff1.cpp:10:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/RcppEigenForward.h:40:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/unsupported/Eigen/SparseExtra:44:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:239:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
    int count = 0;
        ^
  In file included from file3355f161b61ff1.cpp:10:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/RcppEigen.h:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/RcppEigenForward.h:40:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/unsupported/Eigen/SparseExtra:51:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
      #pragma clang diagnostic pop
                               ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core.hpp:28:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_addition.hpp:6:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/err/check_matching_dims.hpp:33:8: warning: unused variable 'error' [-Wunused-variable]
    bool error = false;
         ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LE> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LE> (const double &, const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LE>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_cmp_op<double, double, Eigen::internal::cmp_LE>, const ArrayWrapper<Diagonal<const Matrix<double, -1, -1, 0, -1, -1>, 0>>, const CwiseNullaryOp<scalar_constant_op<double>, Array<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LE>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1, 0>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/err/check_pos_definite.hpp:47:38: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LE>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1, 0>>>' requested here
        || (cholesky.vectorD().array() <= 0.0).any()) {
                                       ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LE> (const double &, const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LT> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LT> (const double &, const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LT>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_cmp_op<double, double, Eigen::internal::cmp_LT>, const ArrayWrapper<Diagonal<const Matrix<double, -1, -1, 0, -1, -1>, 0>>, const CwiseNullaryOp<scalar_constant_op<double>, Array<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LT>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1, 0>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/err/check_pos_semidefinite.hpp:46:38: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LT>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1, 0>>>' requested here
        || (cholesky.vectorD().array() < 0.0).any()) {
                                       ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LT> (const double &, const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core.hpp:54:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/profiling.hpp:9:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/err.hpp:50:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/err/hmm_check.hpp:33:7: warning: unused variable 'n_transitions' [-Wunused-variable]
    int n_transitions = log_omegas.cols() - 1;
        ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:7:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun.hpp:118:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/gp_matern52_cov.hpp:275:10: warning: unused variable 'neg_root_5' [-Wunused-variable]
    double neg_root_5 = -root_5;
           ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_difference_op<int, double> (const int &, const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_difference_op<int, double> (const int &, const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_difference_op<int, double>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const CwiseNullaryOp<linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Array<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/lmgamma.hpp:58:37: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>' requested here
    return result + sum(lgamma(x + (1 - Eigen::ArrayXd::LinSpaced(k, 1, k)) / 2));
                                      ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_difference_op<int, double> (const int &, const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_quotient_op<double, int> (const double &, const int &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_quotient_op<double, int> (const double &, const int &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double, int>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_quotient_op<double, int>, const CwiseBinaryOp<scalar_difference_op<int, double>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const CwiseNullaryOp<linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Array<double, -1, 1, 0, -1, 1>>>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_quotient_op<double, int>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/lmgamma.hpp:58:75: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double, int>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>' requested here
    return result + sum(lgamma(x + (1 - Eigen::ArrayXd::LinSpaced(k, 1, k)) / 2));
                                                                            ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_quotient_op<double, int> (const double &, const int &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:7:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun.hpp:183:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log_mix.hpp:86:13: warning: unused variable 'N' [-Wunused-variable]
    const int N = stan::math::size(theta);
              ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_product_op<double> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_product_op<double> (const double &, const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, -1, 0>>, const Eigen::Matrix<double, -1, -1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_product_op<double, double>, const CwiseNullaryOp<scalar_constant_op<double>, const Matrix<double, -1, -1, 0, -1, -1>>, const Matrix<double, -1, -1, 0, -1, -1>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_product_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, -1, 0>>, const Eigen::Matrix<double, -1, -1, 0>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/matrix_exp_action_handler.hpp:71:19: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, -1, 0>>, const Eigen::Matrix<double, -1, -1, 0>>' requested here
              B = t * A * B / (s * j);
                    ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_product_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_difference_op<double> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_difference_op<double> (const double &, const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::Matrix<double, -1, 1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_difference_op<double, double>, const Matrix<double, -1, 1, 0, -1, 1>, const Matrix<double, -1, 1, 0, -1, 1>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_difference_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::Matrix<double, -1, 1, 0>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/welford_covar_estimator.hpp:26:29: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::Matrix<double, -1, 1, 0>>' requested here
      Eigen::VectorXd delta(q - m_);
                              ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_difference_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_quotient_op<double> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_quotient_op<double> (const double &, const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_quotient_op<double, double>, const Matrix<double, -1, 1, 0, -1, 1>, const CwiseNullaryOp<scalar_constant_op<double>, const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_quotient_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, 1, 0>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/welford_covar_estimator.hpp:27:17: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, 1, 0>>>' requested here
      m_ += delta / num_samples_;
                  ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_quotient_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/detail/conversion_impl.hpp:20:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/heterogeneous_system.hpp:34:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/static_rational.hpp:166:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/detail/conversion_impl.hpp:20:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/heterogeneous_system.hpp:35:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/dimension.hpp:21:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/detail/dimension_list.hpp:125:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/detail/conversion_impl.hpp:20:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/heterogeneous_system.hpp:35:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/dimension.hpp:21:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/detail/dimension_list.hpp:131:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/dimensionless_type.hpp:49:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/detail/conversion_impl.hpp:20:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/heterogeneous_system.hpp:39:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/detail/linear_algebra.hpp:20:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/dim.hpp:75:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/detail/conversion_impl.hpp:20:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/heterogeneous_system.hpp:40:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/detail/unscale.hpp:28:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/scale.hpp:139:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/detail/conversion_impl.hpp:20:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/heterogeneous_system.hpp:120:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/quantity.hpp:29:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/conversion.hpp:17:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/detail/conversion_impl.hpp:21:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/homogeneous_system.hpp:99:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint.hpp:25:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/units/quantity.hpp:495:10: warning: extension used [-Wlanguage-extension-token]
  #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
           ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
       <boost/typeof/incr_registration_group.hpp>
              ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint.hpp:63:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/multi_array.hpp:34:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/multi_array/multi_array_ref.hpp:32:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:45:24: error: no member named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
              using std::unary_function;
                    ~~~~~^~~~~~~~~~~~~~
                         __unary_function
  /usr/local/clang16/bin/../include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here
  using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
  ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint.hpp:63:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/multi_array.hpp:34:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/multi_array/multi_array_ref.hpp:32:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:46:24: error: no member named 'binary_function' in namespace 'std'; did you mean '__binary_function'?
              using std::binary_function;
                    ~~~~~^~~~~~~~~~~~~~~
                         __binary_function
  /usr/local/clang16/bin/../include/c++/v1/__functional/binary_function.h:49:1: note: '__binary_function' declared here
  using __binary_function = __binary_function_keep_layout_base<_Arg1, _Arg2, _Result>;
  ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint.hpp:63:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/multi_array.hpp:34:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/multi_array/multi_array_ref.hpp:32:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:180:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
          : public boost::functional::detail::unary_function<typename unary_traits<Predicate>::argument_type,bool>
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                              __unary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:214:45: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
          : public boost::functional::detail::binary_function<
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                              __binary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
              using std::binary_function;
                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:252:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
          : public boost::functional::detail::unary_function<
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                              __unary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:299:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
          : public boost::functional::detail::unary_function<
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                              __unary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:345:57: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
      class mem_fun_t : public boost::functional::detail::unary_function<T*, S>
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                          __unary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:361:58: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
      class mem_fun1_t : public boost::functional::detail::binary_function<T*, A, S>
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                           __binary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
              using std::binary_function;
                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:377:63: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
      class const_mem_fun_t : public boost::functional::detail::unary_function<const T*, S>
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                                __unary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:393:64: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
      class const_mem_fun1_t : public boost::functional::detail::binary_function<const T*, A, S>
                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                                 __binary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
              using std::binary_function;
                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:438:61: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
      class mem_fun_ref_t : public boost::functional::detail::unary_function<T&, S>
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                              __unary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:454:62: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
      class mem_fun1_ref_t : public boost::functional::detail::binary_function<T&, A, S>
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                               __binary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
              using std::binary_function;
                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:470:67: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
      class const_mem_fun_ref_t : public boost::functional::detail::unary_function<const T&, S>
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                                    __unary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:487:68: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
      class const_mem_fun1_ref_t : public boost::functional::detail::binary_function<const T&, A, S>
                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                                     __binary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
              using std::binary_function;
                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:533:73: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
      class pointer_to_unary_function : public boost::functional::detail::unary_function<Arg,Result>
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                                          __unary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:557:74: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
      class pointer_to_binary_function : public boost::functional::detail::binary_function<Arg1,Arg2,Result>
                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                                           __binary_function
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
              using std::binary_function;
                         ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_sum_op<double> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_sum_op<double> (const double &, const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::Transpose<Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_sum_op<double, double>, const Transpose<Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>>, const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_sum_op<double>, const Eigen::Transpose<Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/multiply_lower_tri_self_transpose.hpp:31:46: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::Transpose<Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>>' requested here
      arena_L.adj() += ((res.adj().transpose() + res.adj())
                                               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/cov_matrix_constrain.hpp:59:10: note: in instantiation of function template specialization 'stan::math::multiply_lower_tri_self_transpose<stan::math::var_value<Eigen::Matrix<double, -1, -1, 0>>, nullptr>' requested here
    return multiply_lower_tri_self_transpose(L);
           ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_sum_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>::adj_Op (stan::math::vari_value<double> *const &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>::adj_Op (stan::math::vari_value<double> *const &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>::adj_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<adj_Op, Map<Matrix<vari_value<double, void> *, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>>>' required here
    : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>::adj_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/divide.hpp:40:31: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>::adj_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>' requested here
          -= invc_ * (adjResult.adj().array() * adjResult.val().array()).sum();
                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>::adj_Op (stan::math::vari_value<double> *const &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>::val_Op (stan::math::vari_value<double> *const &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>::val_Op (stan::math::vari_value<double> *const &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>::val_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<val_Op, Map<Matrix<vari_value<double, void> *, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>>>' required here
    : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>::val_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/divide.hpp:40:57: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>::val_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>' requested here
          -= invc_ * (adjResult.adj().array() * adjResult.val().array()).sum();
                                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1, 0>>>::val_Op (stan::math::vari_value<double> *const &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>::val_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>::val_Op (const stan::math::var_value<double> &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>::val_Op, const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<val_Op, const Matrix<var_value<double, void>, -1, -1, 0, -1, -1>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>::val_Op, const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:45:12: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>::val_Op, const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>' requested here
      Ad = A.val();
             ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>::val_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>::vi_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>::vi_Op (const stan::math::var_value<double> &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>::vi_Op, const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<vi_Op, const Matrix<var_value<double, void>, -1, -1, 0, -1, -1>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>::vi_Op, const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:50:45: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>::vi_Op, const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>' requested here
      Map<matrix_vi>(vari_ref_A_, M_, M_) = A.vi();
                                              ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>::vi_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24), const Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24), const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24), const Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24), const Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>>' requested here
          = wd.unaryExpr([](double x) { return new vari(x, false); });
               ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28) (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28) (const stan::math::var_value<double> &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28), const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28), const Matrix<var_value<double, void>, -1, -1, 0, -1, -1>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28), const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:18: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28), const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>' requested here
          return m.unaryExpr([](auto x) { return value_of_rec(x); });
                   ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/holder.hpp:364:24: note: in instantiation of function template specialization 'stan::math::value_of_rec(const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0> &)::(anonymous class)::operator()<const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0>>' requested here
                decltype(std::declval<F>()(std::declval<Args&>()...))>* = nullptr>
                         ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/holder.hpp:365:6: note: while substituting prior template arguments into non-type template parameter [with F = (lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:109:7), Args = <const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0> &>]
  auto make_holder(const F& func, Args&&... args) {
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:108:10: note: while substituting deduced template arguments into function template 'make_holder' [with F = (lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:109:7), Args = <const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0> &>, $2 = (no value)]
    return make_holder(
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:83:19: note: in instantiation of function template specialization 'stan::math::value_of_rec<const Eigen::Matrix<stan::math::var_value<double>, -1, -1, 0> &, void, void>' requested here
    matrix_d m_eval(value_of_rec(m));
                    ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28) (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::vi_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::vi_Op (const stan::math::var_value<double> &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::vi_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<vi_Op, Matrix<var_value<double, void>, -1, 1, 0, -1, 1>>>' required here
    : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::vi_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>, Eigen::Dense>' requested here
  class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:88:7: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::vi_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>' requested here
    res.vi()
        ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::vi_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24), const Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24), const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24), const Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24), const Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>>' requested here
          = vd.unaryExpr([](double x) { return new vari(x, false); });
               ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::adj_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::adj_Op (const stan::math::var_value<double> &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::adj_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<adj_Op, Matrix<var_value<double, void>, -1, 1, 0, -1, 1>>>' required here
    : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::adj_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>, Eigen::Dense>' requested here
  class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/grad.hpp:27:9: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::adj_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>' requested here
    g = x.adj();
          ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::adj_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_log_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_log_op<double> (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_log_op<double>, const Eigen::ArrayWrapper<const Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_log_op<double>, const ArrayWrapper<const Diagonal<const Matrix<double, -1, -1, 0, -1, -1>, 0>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_log_op<double>, const Eigen::ArrayWrapper<const Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log.hpp:66:47: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_log_op<double>, const Eigen::ArrayWrapper<const Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>>' requested here
        x, [](const auto& v) { return v.array().log(); });
                                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_vector_unary.hpp:48:24: note: in instantiation of function template specialization 'stan::math::log(const Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>> &)::(anonymous class)::operator()<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>' requested here
                         f(x));
                         ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log.hpp:65:41: note: in instantiation of function template specialization 'stan::math::apply_vector_unary<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>::apply<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log.hpp:66:10), Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>, nullptr>' requested here
    return apply_vector_unary<Container>::apply(
                                          ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/log_determinant_spd.hpp:49:20: note: in instantiation of function template specialization 'stan::math::log<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>, nullptr>' requested here
    double val = sum(log(ldlt.vectorD()));
                     ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_log_op<double> (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_exp_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_exp_op<double> (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<Eigen::Matrix<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_exp_op<double>, const ArrayWrapper<Matrix<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<Eigen::Matrix<double, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/log_softmax.hpp:74:39: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<Eigen::Matrix<double, -1, 1, 0>>>' requested here
    vector_d softmax_x_d = diff.array().exp();
                                        ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_exp_op<double> (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_opposite_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_opposite_op<double> (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::Matrix<double, -1, -1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_opposite_op<double>, const Matrix<double, -1, -1, 0, -1, -1>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_opposite_op<double>, const Eigen::Matrix<double, -1, -1, 0>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/mdivide_left_tri.hpp:85:12: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::Matrix<double, -1, -1, 0>>' requested here
      adjA = -adjB * Map<matrix_d>(C_, M_, N_).transpose();
             ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_opposite_op<double> (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_sqrt_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_sqrt_op<double> (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_sqrt_op<double>, const Eigen::Block<Eigen::Map<Eigen::Array<double, -1, 1, 0>>, -1, 1>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_sqrt_op<double>, const Block<Map<Array<double, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>, -1, 1, false>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_sqrt_op<double>, const Eigen::Block<Eigen::Map<Eigen::Array<double, -1, 1, 0>>, -1, 1>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/read_corr_L.hpp:63:58: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_sqrt_op<double>, const Eigen::Block<Eigen::Map<Eigen::Array<double, -1, 1, 0>>, -1, 1>>' requested here
      L.col(i).tail(pull) = cpc_seg * arena_acc.tail(pull).sqrt();
                                                           ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_sqrt_op<double> (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_inverse_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_inverse_op<double> (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_inverse_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_inverse_op<double>, const Map<Matrix<double, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_inverse_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/DiagonalMatrix.h:230:20: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_inverse_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1, 0>>>' requested here
    typedef typename DiagonalVectorType::Scalar Scalar;
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/EigenBase.h:41:30: note: in instantiation of template class 'Eigen::internal::traits<Eigen::DiagonalWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_inverse_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1, 0>>>>>' requested here
    typedef typename internal::traits<Derived>::StorageKind StorageKind;
                               ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/DiagonalMatrix.h:18:29: note: in instantiation of template class 'Eigen::EigenBase<Eigen::DiagonalWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_inverse_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1, 0>>>>>' requested here
  class DiagonalBase : public EigenBase<Derived>
                              ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/DiagonalMatrix.h:246:12: note: in instantiation of template class 'Eigen::DiagonalBase<Eigen::DiagonalWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_inverse_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1, 0>>>>>' requested here
    : public DiagonalBase<DiagonalWrapper<_DiagonalVectorType> >, internal::no_assignment_operator
             ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/svd_U.hpp:63:60: note: in instantiation of template class 'Eigen::DiagonalWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_inverse_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1, 0>>>>' requested here
                   * arena_U.adj_op() * arena_D.asDiagonal().inverse()
                                                             ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_inverse_op<double> (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>::val_Op (stan::math::vari_value<double> *const &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>::val_Op (stan::math::vari_value<double> *const &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>::val_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<val_Op, Map<Matrix<vari_value<double, void> *, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>' required here
    : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>::val_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/squared_distance.hpp:79:38: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>::val_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>' requested here
      vector_d di = 2 * adj_ * (v1_map.val() - v2_map.val());
                                       ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>::val_Op (stan::math::vari_value<double> *const &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>::adj_Op (stan::math::vari_value<double> *const &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>::adj_Op (stan::math::vari_value<double> *const &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>::adj_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<adj_Op, Map<Matrix<vari_value<double, void> *, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>' required here
    : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>::adj_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/squared_distance.hpp:80:12: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>::adj_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>' requested here
      v1_map.adj() += di;
             ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1, 0>>>::adj_Op (stan::math::vari_value<double> *const &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>::vi_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>::vi_Op (const stan::math::var_value<double> &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>::vi_Op, Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<vi_Op, Map<const Matrix<var_value<double, void>, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>' required here
    : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>::vi_Op, Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/variance.hpp:22:49: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>::vi_Op, Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>' requested here
    Eigen::Map<vector_vi>(varis, size) = dtrs_map.vi();
                                                  ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>::vi_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>::val_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>::val_Op (const stan::math::var_value<double> &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>::val_Op, Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<val_Op, Map<const Matrix<var_value<double, void>, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>' required here
    : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>::val_Op, Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/variance.hpp:23:33: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>::val_Op, Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>' requested here
    vector_d dtrs_vals = dtrs_map.val();
                                  ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>::val_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_product_op<int, double> (const int &, const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_product_op<int, double> (const int &, const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::ArrayWrapper<Eigen::Matrix<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_product_op<int, double>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const ArrayWrapper<Matrix<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_product_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::ArrayWrapper<Eigen::Matrix<double, -1, 1, 0>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/variance.hpp:27:44: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::ArrayWrapper<Eigen::Matrix<double, -1, 1, 0>>>' requested here
    Eigen::Map<vector_d>(partials, size) = 2 * diff.array() / size_m1;
                                             ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_product_op<int, double> (const int &, const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::val_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::val_Op (const stan::math::var_value<double> &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::val_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<val_Op, Matrix<var_value<double, void>, -1, 1, 0, -1, 1>>>' required here
    : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::val_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>, Eigen::Dense>' requested here
  class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/functor/jacobian.hpp:26:15: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::val_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>' requested here
    fx = fx_var.val();
                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>::val_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28) (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28) (const stan::math::var_value<double> &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28), const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28), const Matrix<var_value<double, void>, -1, 1, 0, -1, 1>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28), const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:18: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28), const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>' requested here
          return a.unaryExpr([](const auto& scal) { return value_of(scal); });
                   ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/holder.hpp:364:24: note: in instantiation of function template specialization 'stan::math::value_of(const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0> &)::(anonymous class)::operator()<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0>>' requested here
                decltype(std::declval<F>()(std::declval<Args&>()...))>* = nullptr>
                         ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/holder.hpp:365:6: note: while substituting prior template arguments into non-type template parameter [with F = (lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:57:7), Args = <const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0> &>]
  auto make_holder(const F& func, Args&&... args) {
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:56:10: note: while substituting deduced template arguments into function template 'make_holder' [with F = (lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:57:7), Args = <const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0> &>, $2 = (no value)]
    return make_holder(
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/functor/algebra_solver_fp.hpp:96:29: note: in instantiation of function template specialization 'stan::math::value_of<const Eigen::Matrix<stan::math::var_value<double>, -1, 1, 0> &, nullptr, nullptr>' requested here
          y_dummy(stan::math::value_of(y)),
                              ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28) (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:13:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob.hpp:87:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/double_exponential_cdf.hpp:82:10: warning: unused variable 'N' [-Wunused-variable]
    size_t N = max_size(y, mu, sigma);
           ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:13:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob.hpp:128:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/gaussian_dlm_obs_rng.hpp:98:7: warning: unused variable 'n' [-Wunused-variable]
    int n = G.rows();  // number of states
        ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:13:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob.hpp:139:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/hmm_marginal.hpp:26:13: warning: unused variable 'n_states' [-Wunused-variable]
    const int n_states = omegas.rows();
              ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_sum_op<int> (const int &, const int &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_sum_op<int> (const int &, const int &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_sum_op<int, int>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const Map<const Array<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/multinomial_logit_lpmf.hpp:39:47: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>' requested here
      lp += lgamma(1 + ns_map.sum()) - lgamma(1 + ns_map).sum();
                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_sum_op<int> (const int &, const int &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const int &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const int &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const CwiseBinaryOp<scalar_sum_op<int, int>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const Map<const Array<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/lgamma.hpp:120:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>>' requested here
    return apply_scalar_unary<lgamma_fun, T>::apply(x);
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/multinomial_logit_lpmf.hpp:39:38: note: in instantiation of function template specialization 'stan::math::lgamma<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>, nullptr>' requested here
      lp += lgamma(1 + ns_map.sum()) - lgamma(1 + ns_map).sum();
                                       ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const int &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_abs_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_abs_op<double> (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>, const Eigen::Array<double, -1, 1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_abs_op<double>, const Array<double, -1, 1, 0, -1, 1>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_abs_op<double>, const Eigen::Array<double, -1, 1, 0>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:130:48: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>, const Eigen::Array<double, -1, 1, 0>>' requested here
        = (cut1 > 0.0).select(-cut1, 0) - (-cut1.abs()).exp().log1p();
                                                 ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_abs_op<double> (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_log1p_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_log1p_op<double> (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_log1p_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>, const Eigen::Array<double, -1, 1, 0>>>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_log1p_op<double>, const CwiseUnaryOp<scalar_exp_op<double>, const CwiseUnaryOp<scalar_opposite_op<double>, const CwiseUnaryOp<scalar_abs_op<double>, const Array<double, -1, 1, 0, -1, 1>>>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_log1p_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>, const Eigen::Array<double, -1, 1, 0>>>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:130:61: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_log1p_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>, const Eigen::Array<double, -1, 1, 0>>>>>' requested here
        = (cut1 > 0.0).select(-cut1, 0) - (-cut1.abs()).exp().log1p();
                                                              ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_log1p_op<double> (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_cmp_op<int, int, Eigen::internal::cmp_EQ> (const int &, const int &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_cmp_op<int, int, Eigen::internal::cmp_EQ> (const int &, const int &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_cmp_op<int, int, Eigen::internal::cmp_EQ>, const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, Eigen::Matrix<int, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_cmp_op<int, int, Eigen::internal::cmp_EQ>, const Map<const Matrix<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>, const CwiseNullaryOp<scalar_constant_op<int>, Matrix<int, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_cmp_op<int, int, Eigen::internal::cmp_EQ>, const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, Eigen::Matrix<int, -1, 1, 0>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:138:18: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_cmp_op<int, int, Eigen::internal::cmp_EQ>, const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, Eigen::Matrix<int, -1, 1, 0>>>' requested here
      logp = y_vec.cwiseEqual(1)
                   ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_cmp_op<int, int, Eigen::internal::cmp_EQ> (const int &, const int &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1, 0>, const Eigen::Array<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const CwiseBinaryOp<scalar_difference_op<double, double>, const Array<double, -1, 1, 0, -1, 1>, const Array<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1, 0>, const Eigen::Array<double, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1, 0>, const Eigen::Array<double, -1, 1, 0>>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::log1m_exp_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1, 0>, const Eigen::Array<double, -1, 1, 0>>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log1m_exp.hpp:83:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::log1m_exp_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1, 0>, const Eigen::Array<double, -1, 1, 0>>>' requested here
    return apply_scalar_unary<log1m_exp_fun, T>::apply(x);
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:142:50: note: in instantiation of function template specialization 'stan::math::log1m_exp<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1, 0>, const Eigen::Array<double, -1, 1, 0>>, nullptr>' requested here
                             m_log_1p_exp_m_cut2 + log1m_exp(cut1 - cut2).array()
                                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_sum_op<int, double> (const int &, const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_sum_op<int, double> (const int &, const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Array<double, -1, 1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_sum_op<int, double>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const Array<double, -1, 1, 0, -1, 1>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_sum_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Array<double, -1, 1, 0>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:164:45: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Array<double, -1, 1, 0>>' requested here
          = (cut2 > 0).select(exp_m_cut2 / (1 + exp_m_cut2), 1 / (1 + exp(cut2)))
                                              ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_sum_op<int, double> (const int &, const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_difference_op<double, int> (const double &, const int &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_difference_op<double, int> (const double &, const int &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double, int>, const Eigen::Array<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_difference_op<double, int>, const Array<double, -1, 1, 0, -1, 1>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_difference_op<double, int>, const Eigen::Array<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:165:44: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double, int>, const Eigen::Array<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>' requested here
            - exp_cuts_diff / (exp_cuts_diff - 1);
                                             ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_difference_op<double, int> (const double &, const int &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_quotient_op<int, double> (const int &, const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_quotient_op<int, double> (const int &, const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Array<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_quotient_op<int, double>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const CwiseBinaryOp<scalar_difference_op<int, double>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const Array<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_quotient_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Array<double, -1, 1, 0>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:167:13: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Array<double, -1, 1, 0>>>' requested here
          = 1 / (1 - exp_cuts_diff)
              ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_quotient_op<int, double> (const int &, const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:13:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob.hpp:315:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/std_normal_rng.hpp:23:22: warning: unused variable 'function' [-Wunused-variable]
    static const char* function = "std_normal_rng";
                       ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:13:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim.hpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob.hpp:335:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/von_mises_cdf.hpp:72:10: warning: unused variable 'ck' [-Wunused-variable]
    double ck = 50;
           ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:15:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/indexing.hpp:9:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/indexing/rvalue.hpp:610:13: warning: unused variable 'cols' [-Wunused-variable]
    const int cols = rvalue_index_size(idxs.tail_.head_, x_ref.cols());
              ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:15:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/indexing.hpp:10:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/indexing/rvalue_varmat.hpp:241:22: warning: unused variable 'x_cols' [-Wunused-variable]
    const Eigen::Index x_cols = x.cols();
                       ^
  file3355f161b61ff1.cpp:4439:9: warning: variable 'iter' set but not used [-Wunused-but-set-variable]
      int iter;
          ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core.hpp:29:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_divide_equal.hpp:5:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_division.hpp:14:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_multiplication.hpp:7:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_subtraction.hpp:88:43: warning: lambda capture 'b' is not used [-Wunused-lambda-capture]
                              [avi = a.vi_, b](const auto& vi) mutable {
                                            ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_minus_equal.hpp:24:16: note: in instantiation of function template specialization 'stan::math::operator-<double, nullptr>' requested here
    vi_ = (*this - b).vi_;
                 ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/core/complex_base.hpp:136:9: note: in instantiation of member function 'stan::math::var_value<double>::operator-=' requested here
      re_ -= x;
          ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/core/operator_subtraction.hpp:24:5: note: in instantiation of function template specialization 'stan::math::complex_base<stan::math::var_value<double>>::operator-=<int>' requested here
    y -= rhs;
      ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/core/operator_subtraction.hpp:55:20: note: in instantiation of function template specialization 'stan::math::internal::complex_subtract<std::complex<stan::math::var>, int>' requested here
    return internal::complex_subtract(x, y);
                     ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/acosh.hpp:105:31: note: in instantiation of function template specialization 'stan::math::operator-<stan::math::var_value<double>, int>' requested here
    auto y = log(z + sqrt(z * z - 1));
                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/acosh.hpp:94:32: note: in instantiation of function template specialization 'stan::math::internal::complex_acosh<stan::math::var_value<double>>' requested here
    return stan::math::internal::complex_acosh(z);
                                 ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_abs2_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_abs2_op<double> (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs2_op<double>, const Eigen::Block<const Eigen::Block<Eigen::Block<Eigen::Matrix<double, -1, -1, 0>, -1, 1, true>, -1, 1>, -1, 1>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_abs2_op<double>, const Block<const Block<Block<Matrix<double, -1, -1, 0, -1, -1>, -1, 1, true>, -1, 1, false>, -1, 1, false>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_abs2_op<double>, const Eigen::Block<const Eigen::Block<Eigen::Block<Eigen::Matrix<double, -1, -1, 0>, -1, 1, true>, -1, 1>, -1, 1>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/Dot.h:98:31: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs2_op<double>, const Eigen::Block<const Eigen::Block<Eigen::Block<Eigen::Matrix<double, -1, -1, 0>, -1, 1, true>, -1, 1>, -1, 1>>' requested here
    return numext::real((*this).cwiseAbs2().sum());
                                ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Householder/Householder.h:76:60: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    RealScalar tailSqNorm = size()==1 ? RealScalar(0) : tail.squaredNorm();
                                                             ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Eigenvalues/Tridiagonalization.h:445:5: note: in instantiation of function template specialization 'Eigen::internal::tridiagonalization_inplace<Eigen::Matrix<double, -1, -1, 0>, Eigen::Matrix<double, -1, 1, 0>>' requested here
      tridiagonalization_inplace(mat,hCoeffs);
      ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Eigenvalues/Tridiagonalization.h:430:52: note: in instantiation of function template specialization 'Eigen::internal::tridiagonalization_inplace_selector<Eigen::Matrix<double, -1, -1, 0>, -1, false>::run<Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>>' requested here
    tridiagonalization_inplace_selector<MatrixType>::run(mat, diag, subdiag, extractQ);
                                                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h:437:13: note: in instantiation of function template specialization 'Eigen::internal::tridiagonalization_inplace<Eigen::Matrix<double, -1, -1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>>' requested here
    internal::tridiagonalization_inplace(mat, diag, m_subdiag, computeEigenvectors);
              ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h:168:7: note: in instantiation of function template specialization 'Eigen::SelfAdjointEigenSolver<Eigen::Matrix<double, -1, -1, 0>>::compute<Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>>' requested here
        compute(matrix.derived(), options);
        ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:46:45: note: in instantiation of function template specialization 'Eigen::SelfAdjointEigenSolver<Eigen::Matrix<double, -1, -1, 0>>::SelfAdjointEigenSolver<Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>>' requested here
      Eigen::SelfAdjointEigenSolver<matrix_d> solver(Ad);
                                              ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_abs2_op<double> (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_conj_product_op<double> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_conj_product_op<double> (const double &, const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_conj_product_op<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1, 0>, -1, 1>, const Eigen::Block<Eigen::Block<Eigen::Matrix<double, -1, -1, 0>, -1, 1, true>, -1, 1>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_conj_product_op<double, double>, const Block<Matrix<double, -1, 1, 0, -1, 1>, -1, 1, false>, const Block<Block<Matrix<double, -1, -1, 0, -1, -1>, -1, 1, true>, -1, 1, false>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_conj_product_op<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1, 0>, -1, 1>, const Eigen::Block<Eigen::Block<Eigen::Matrix<double, -1, -1, 0>, -1, 1, true>, -1, 1>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/Dot.h:37:23: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_conj_product_op<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1, 0>, -1, 1>, const Eigen::Block<Eigen::Block<Eigen::Matrix<double, -1, -1, 0>, -1, 1, true>, -1, 1>>' requested here
      return a.template binaryExpr<conj_prod>(b).sum();
                        ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/Dot.h:84:55: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    return internal::dot_nocheck<Derived,OtherDerived>::run(*this, other);
                                                        ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Eigenvalues/Tridiagonalization.h:445:5: note: in instantiation of function template specialization 'Eigen::internal::tridiagonalization_inplace<Eigen::Matrix<double, -1, -1, 0>, Eigen::Matrix<double, -1, 1, 0>>' requested here
      tridiagonalization_inplace(mat,hCoeffs);
      ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Eigenvalues/Tridiagonalization.h:430:52: note: in instantiation of function template specialization 'Eigen::internal::tridiagonalization_inplace_selector<Eigen::Matrix<double, -1, -1, 0>, -1, false>::run<Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>>' requested here
    tridiagonalization_inplace_selector<MatrixType>::run(mat, diag, subdiag, extractQ);
                                                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h:437:13: note: in instantiation of function template specialization 'Eigen::internal::tridiagonalization_inplace<Eigen::Matrix<double, -1, -1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>>' requested here
    internal::tridiagonalization_inplace(mat, diag, m_subdiag, computeEigenvectors);
              ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h:168:7: note: in instantiation of function template specialization 'Eigen::SelfAdjointEigenSolver<Eigen::Matrix<double, -1, -1, 0>>::compute<Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>>' requested here
        compute(matrix.derived(), options);
        ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:46:45: note: in instantiation of function template specialization 'Eigen::SelfAdjointEigenSolver<Eigen::Matrix<double, -1, -1, 0>>::SelfAdjointEigenSolver<Eigen::Map<Eigen::Matrix<double, -1, -1, 0>>>' requested here
      Eigen::SelfAdjointEigenSolver<matrix_d> solver(Ad);
                                              ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_conj_product_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core.hpp:28:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_addition.hpp:84:43: warning: lambda capture 'b' is not used [-Wunused-lambda-capture]
                              [avi = a.vi_, b](const auto& vi) mutable {
                                            ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/grad_inc_beta.hpp:45:43: note: in instantiation of function template specialization 'stan::math::operator+<int, nullptr>' requested here
      grad_2F1(dF1, dF2, a + b, var(1.0), a + 1, z);
                                            ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1, 0>>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double, int>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const CwiseBinaryOp<scalar_sum_op<double, double>, const CwiseNullaryOp<scalar_constant_op<double>, const Array<double, -1, 1, 0, -1, 1>>, const CwiseBinaryOp<scalar_quotient_op<double, int>, const CwiseBinaryOp<scalar_difference_op<int, double>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const CwiseNullaryOp<linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Array<double, -1, 1, 0, -1, 1>>>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1, 0>>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double, int>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1, 0>>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double, int>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1, 0>>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double, int>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/lgamma.hpp:120:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1, 0>>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double, int>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>>>' requested here
    return apply_scalar_unary<lgamma_fun, T>::apply(x);
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/lmgamma.hpp:58:23: note: in instantiation of function template specialization 'stan::math::lgamma<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1, 0>>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double, int>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>>, nullptr>' requested here
    return result + sum(lgamma(x + (1 - Eigen::ArrayXd::LinSpaced(k, 1, k)) / 2));
                        ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/lmgamma.hpp:16:20: note: in instantiation of function template specialization 'stan::math::lmgamma<double, nullptr>' requested here
        : op_dv_vari(lmgamma(a, bvi->val_), a, bvi) {}
                     ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from file3355f161b61ff1.cpp:16:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:8:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core.hpp:28:
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_addition.hpp:84:43: warning: lambda capture 'b' is not used [-Wunused-lambda-capture]
                              [avi = a.vi_, b](const auto& vi) mutable {
                                            ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/trigamma.hpp:63:31: note: in instantiation of function template specialization 'stan::math::operator+<double, nullptr>' requested here
      value = -trigamma_impl(-x + 1.0) + square(pi() / sin(-pi() * x));
                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/trigamma.hpp:23:44: note: in instantiation of function template specialization 'stan::math::trigamma_impl<stan::math::var_value<double>>' requested here
  inline var trigamma(const var& u) { return trigamma_impl(u); }
                                             ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::log1m_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log1m.hpp:74:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::log1m_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>' requested here
    return apply_scalar_unary<log1m_fun, T>::apply(x);
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/beta_lpdf.hpp:88:32: note: in instantiation of function template specialization 'stan::math::log1m<Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, nullptr, nullptr>' requested here
    const auto& log1m_y = to_ref(log1m(y_val));
                                 ^
  file3355f161b61ff1.cpp:1137:16: note: in instantiation of function template specialization 'stan::math::beta_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
                 beta_lpdf<false>(
                 ^
  file3355f161b61ff1.cpp:4571:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, double, double, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/lgamma.hpp:120:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>' requested here
    return apply_scalar_unary<lgamma_fun, T>::apply(x);
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/beta_lpdf.hpp:93:17: note: in instantiation of function template specialization 'stan::math::lgamma<Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, nullptr>' requested here
      logp -= sum(lgamma(alpha_val)) * N / max_size(alpha);
                  ^
  file3355f161b61ff1.cpp:1137:16: note: in instantiation of function template specialization 'stan::math::beta_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
                 beta_lpdf<false>(
                 ^
  file3355f161b61ff1.cpp:4571:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, double, double, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const CwiseBinaryOp<scalar_sum_op<double, double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/lgamma.hpp:120:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
    return apply_scalar_unary<lgamma_fun, T>::apply(x);
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/beta_lpdf.hpp:116:17: note: in instantiation of function template specialization 'stan::math::lgamma<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>, nullptr>' requested here
      logp += sum(lgamma(alpha_beta)) * N / max_size(alpha, beta);
                  ^
  file3355f161b61ff1.cpp:1137:16: note: in instantiation of function template specialization 'stan::math::beta_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
                 beta_lpdf<false>(
                 ^
  file3355f161b61ff1.cpp:4571:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, double, double, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const CwiseBinaryOp<scalar_sum_op<double, double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::digamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/digamma.hpp:77:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::digamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
    return apply_scalar_unary<digamma_fun, T>::apply(x);
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/beta_lpdf.hpp:120:57: note: in instantiation of function template specialization 'stan::math::digamma<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>, nullptr>' requested here
              && !is_constant_all<T_scale_fail>::value > (digamma(alpha_beta));
                                                          ^
  file3355f161b61ff1.cpp:1137:16: note: in instantiation of function template specialization 'stan::math::beta_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
                 beta_lpdf<false>(
                 ^
  file3355f161b61ff1.cpp:4571:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, double, double, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::digamma_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/digamma.hpp:77:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::digamma_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>' requested here
    return apply_scalar_unary<digamma_fun, T>::apply(x);
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/beta_lpdf.hpp:123:44: note: in instantiation of function template specialization 'stan::math::digamma<Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, nullptr>' requested here
              = log_y + digamma_alpha_beta - digamma(alpha_val);
                                             ^
  file3355f161b61ff1.cpp:1137:16: note: in instantiation of function template specialization 'stan::math::beta_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
                 beta_lpdf<false>(
                 ^
  file3355f161b61ff1.cpp:4571:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, double, double, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1, 0>>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const ArrayWrapper<const Map<const Matrix<double, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1, 0>>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1, 0>>>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/lgamma.hpp:120:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
    return apply_scalar_unary<lgamma_fun, T>::apply(x);
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/gamma_lpdf.hpp:102:17: note: in instantiation of function template specialization 'stan::math::lgamma<Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1, 0>>>, nullptr>' requested here
      logp = -sum(lgamma(alpha_val)) * N / math::size(alpha);
                  ^
  file3355f161b61ff1.cpp:1146:16: note: in instantiation of function template specialization 'stan::math::gamma_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, std::vector<double>, int, nullptr>' requested here
      lp = (lp + gamma_lpdf<false>(zeta, delta, 1));
                 ^
  file3355f161b61ff1.cpp:4571:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, double, double, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1, 0>>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const ArrayWrapper<const Map<const Matrix<double, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1, 0>>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::digamma_fun, Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1, 0>>>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/digamma.hpp:77:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::digamma_fun, Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
    return apply_scalar_unary<digamma_fun, T>::apply(x);
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/gamma_lpdf.hpp:110:58: note: in instantiation of function template specialization 'stan::math::digamma<Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1, 0>>>, nullptr>' requested here
        ops_partials.edge2_.partials_ = log_beta + log_y - digamma(alpha_val);
                                                           ^
  file3355f161b61ff1.cpp:1146:16: note: in instantiation of function template specialization 'stan::math::gamma_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, std::vector<double>, int, nullptr>' requested here
      lp = (lp + gamma_lpdf<false>(zeta, delta, 1));
                 ^
  file3355f161b61ff1.cpp:4571:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>, double, double, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::decov_lpdf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_square_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_square_op<double> (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_square_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_square_op<double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_square_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/square.hpp:71:47: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_square_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>' requested here
        x, [](const auto& v) { return v.array().square(); });
                                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_vector_unary.hpp:48:24: note: in instantiation of function template specialization 'stan::math::square(const Eigen::Matrix<double, -1, 1, 0> &)::(anonymous class)::operator()<Eigen::Matrix<double, -1, 1, 0>>' requested here
                         f(x));
                         ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/square.hpp:70:41: note: in instantiation of function template specialization 'stan::math::apply_vector_unary<Eigen::Matrix<double, -1, 1, 0>>::apply<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/square.hpp:71:10), Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
    return apply_vector_unary<Container>::apply(
                                          ^
  file3355f161b61ff1.cpp:1223:39: note: in instantiation of function template specialization 'stan::math::square<Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
      assign(lambda2, nil_index_list(), square(lambda),
                                        ^
  file3355f161b61ff1.cpp:4587:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::hs_prior<Eigen::Matrix<double, -1, 1, 0>, double, double, double, double, double>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::hs_prior(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_square_op<double> (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Matrix<double, -1, 1, 0, -1, 1>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1, 0>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1, 0>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::inv_logit_fun, Eigen::Matrix<double, -1, 1, 0>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/inv_logit.hpp:88:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::inv_logit_fun, Eigen::Matrix<double, -1, 1, 0>>' requested here
    return apply_scalar_unary<inv_logit_fun, T>::apply(x);
           ^
  file3355f161b61ff1.cpp:1567:14: note: in instantiation of function template specialization 'stan::math::inv_logit<Eigen::Matrix<double, -1, 1, 0>, nullptr, nullptr>' requested here
        return inv_logit(eta);
               ^
  file3355f161b61ff1.cpp:4646:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::linkinv_bern<Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::linkinv_bern(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Matrix<double, -1, 1, 0, -1, 1>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1, 0>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1, 0>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::Phi_fun, Eigen::Matrix<double, -1, 1, 0>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Phi.hpp:69:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::Phi_fun, Eigen::Matrix<double, -1, 1, 0>>' requested here
    return apply_scalar_unary<Phi_fun, T>::apply(x);
           ^
  file3355f161b61ff1.cpp:1572:16: note: in instantiation of function template specialization 'stan::math::Phi<Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
          return Phi(eta);
                 ^
  file3355f161b61ff1.cpp:4646:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::linkinv_bern<Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::linkinv_bern(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_atan_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_atan_op<double> (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_atan_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_atan_op<double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_atan_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/atan.hpp:61:47: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_atan_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>' requested here
        x, [](const auto& v) { return v.array().atan(); });
                                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_vector_unary.hpp:48:24: note: in instantiation of function template specialization 'stan::math::atan(const Eigen::Matrix<double, -1, 1, 0> &)::(anonymous class)::operator()<Eigen::Matrix<double, -1, 1, 0>>' requested here
                         f(x));
                         ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/atan.hpp:60:41: note: in instantiation of function template specialization 'stan::math::apply_vector_unary<Eigen::Matrix<double, -1, 1, 0>>::apply<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/atan.hpp:61:10), Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
    return apply_vector_unary<Container>::apply(
                                          ^
  file3355f161b61ff1.cpp:1577:41: note: in instantiation of function template specialization 'stan::math::atan<Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
            return add(divide(stan::math::atan(eta), stan::math::pi()), 0.5);
                                          ^
  file3355f161b61ff1.cpp:4646:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::linkinv_bern<Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::linkinv_bern(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_atan_op<double> (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Matrix<double, -1, 1, 0, -1, 1>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1, 0>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1, 0>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::log1m_exp_fun, Eigen::Matrix<double, -1, 1, 0>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log1m_exp.hpp:83:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::log1m_exp_fun, Eigen::Matrix<double, -1, 1, 0>>' requested here
    return apply_scalar_unary<log1m_exp_fun, T>::apply(x);
           ^
  file3355f161b61ff1.cpp:1657:28: note: in instantiation of function template specialization 'stan::math::log1m_exp<Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
              lp = (lp + sum(log1m_exp(eta0)));
                             ^
  file3355f161b61ff1.cpp:4655:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::bern_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::bern_lpdf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::MatrixWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const CwiseUnaryOp<scalar_opposite_op<double>, const MatrixWrapper<const CwiseUnaryOp<scalar_exp_op<double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::MatrixWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::MatrixWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::log1m_exp_fun, Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::MatrixWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log1m_exp.hpp:83:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::log1m_exp_fun, Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::MatrixWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>>>' requested here
    return apply_scalar_unary<log1m_exp_fun, T>::apply(x);
           ^
  file3355f161b61ff1.cpp:1664:30: note: in instantiation of function template specialization 'stan::math::log1m_exp<Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::MatrixWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>>, nullptr>' requested here
                lp = (lp + sum(log1m_exp(minus(stan::math::exp(eta1)))));
                               ^
  file3355f161b61ff1.cpp:4655:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::bern_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::bern_lpdf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Array<double, -1, 1, 0>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Array<double, -1, 1, 0, -1, 1>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Array<double, -1, 1, 0>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Array<double, -1, 1, 0>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::log1p_fun, Eigen::Array<double, -1, 1, 0>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log1p.hpp:82:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::log1p_fun, Eigen::Array<double, -1, 1, 0>>' requested here
    return apply_scalar_unary<log1p_fun, T>::apply(x);
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/bernoulli_logit_lpmf.hpp:79:54: note: in instantiation of function template specialization 'stan::math::log1p<Eigen::Array<double, -1, 1, 0>, nullptr>' requested here
                    (ntheta < -cutoff).select(ntheta, -log1p(exp_m_ntheta))));
                                                       ^
  file3355f161b61ff1.cpp:1725:11: note: in instantiation of function template specialization 'stan::math::bernoulli_logit_lpmf<false, int, double, nullptr>' requested here
            bernoulli_logit_lpmf<false>(y, eta[(n - 1)]),
            ^
  file3355f161b61ff1.cpp:4664:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::pw_bern<Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::pw_bern(y, eta,
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_sum_op<double, int> (const double &, const int &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_sum_op<double, int> (const double &, const int &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double, int>, const Eigen::Array<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_sum_op<double, int>, const Array<double, -1, 1, 0, -1, 1>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_sum_op<double, int>, const Eigen::Array<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/bernoulli_logit_lpmf.hpp:87:72: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double, int>, const Eigen::Array<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>' requested here
                            .select(signs * exp_m_ntheta / (exp_m_ntheta + 1),
                                                                         ^
  file3355f161b61ff1.cpp:1725:11: note: in instantiation of function template specialization 'stan::math::bernoulli_logit_lpmf<false, int, double, nullptr>' requested here
            bernoulli_logit_lpmf<false>(y, eta[(n - 1)]),
            ^
  file3355f161b61ff1.cpp:4664:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::pw_bern<Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::pw_bern(y, eta,
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_sum_op<double, int> (const double &, const int &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_cast_op<double, double> (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_cast_op<double, double> (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<double, double>, const Eigen::Block<const Eigen::Matrix<double, -1, 1, 0>, -1, 1>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_cast_op<double, double>, const Block<const Matrix<double, -1, 1, 0, -1, 1>, -1, 1, false>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_cast_op<double, double>, const Eigen::Block<const Eigen::Matrix<double, -1, 1, 0>, -1, 1>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:510:20: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<double, double>, const Eigen::Block<const Eigen::Matrix<double, -1, 1, 0>, -1, 1>>' requested here
    typedef typename _CastType::Scalar NewScalarType;
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/../plugins/CommonCwiseUnaryOps.h:48:69: note: in instantiation of template class 'Eigen::internal::cast_return_type<Eigen::Block<const Eigen::Matrix<double, -1, 1, 0>, -1, 1>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<double, double>, const Eigen::Block<const Eigen::Matrix<double, -1, 1, 0>, -1, 1>>>' requested here
  template<class NewType> struct CastXpr { typedef typename internal::cast_return_type<Derived,const CwiseUnaryOp<internal::scalar_cast_op<Scalar, NewType>, const Derived> >::type Type; };
                                                                      ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/../plugins/CommonCwiseUnaryOps.h:61:1: note: in instantiation of template class 'Eigen::MatrixBase<Eigen::Block<const Eigen::Matrix<double, -1, 1, 0>, -1, 1>>::CastXpr<double>' requested here
  typename CastXpr<NewType>::Type
  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/append_row.hpp:47:38: note: while substituting explicitly-specified template arguments into function template 'cast' 
    result.topRows(Arows) = A.template cast<T_return>();
                                       ^
  file3355f161b61ff1.cpp:1895:9: note: in instantiation of function template specialization 'stan::math::append_row<Eigen::VectorBlock<const Eigen::Matrix<double, -1, 1, 0>>, Eigen::VectorBlock<const Eigen::Matrix<double, -1, 1, 0>>, nullptr>' requested here
          append_row(segment(eta1, pos1, D_g), segment(eta0, pos0, F_g)),
          ^
  file3355f161b61ff1.cpp:4687:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::clogit_lpdf<false, Eigen::Matrix<double, -1, 1, 0>, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::clogit_lpdf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_cast_op<double, double> (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::inv_logit_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/inv_logit.hpp:88:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::inv_logit_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>' requested here
    return apply_scalar_unary<inv_logit_fun, T>::apply(x);
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/binomial_logit_lpmf.hpp:75:52: note: in instantiation of function template specialization 'stan::math::inv_logit<Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, nullptr, nullptr>' requested here
        = to_ref_if<!is_constant_all<T_prob>::value>(inv_logit(alpha_val));
                                                     ^
  file3355f161b61ff1.cpp:2007:18: note: in instantiation of function template specialization 'stan::math::binomial_logit_lpmf<false, std::vector<int>, std::vector<int>, Eigen::Matrix<double, -1, 1, 0>>' requested here
        lp = (lp + binomial_logit_lpmf<false>(y, trials, eta));
                   ^
  file3355f161b61ff1.cpp:4707:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::binom_lpmf<false, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::binom_lpmf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const CwiseUnaryOp<scalar_opposite_op<double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
      return x.unaryExpr(
               ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::inv_logit_fun, Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>::apply' requested here
        apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
                                  ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/inv_logit.hpp:88:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::inv_logit_fun, Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
    return apply_scalar_unary<inv_logit_fun, T>::apply(x);
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/binomial_logit_lpmf.hpp:77:52: note: in instantiation of function template specialization 'stan::math::inv_logit<Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>, nullptr, nullptr>' requested here
        = to_ref_if<!is_constant_all<T_prob>::value>(inv_logit(-alpha_val));
                                                     ^
  file3355f161b61ff1.cpp:2007:18: note: in instantiation of function template specialization 'stan::math::binomial_logit_lpmf<false, std::vector<int>, std::vector<int>, Eigen::Matrix<double, -1, 1, 0>>' requested here
        lp = (lp + binomial_logit_lpmf<false>(y, trials, eta));
                   ^
  file3355f161b61ff1.cpp:4707:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::binom_lpmf<false, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::binom_lpmf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_difference_op<int> (const int &, const int &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_difference_op<int> (const int &, const int &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_difference_op<int, int>, const ArrayWrapper<const Map<const Matrix<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>, const ArrayWrapper<const Map<const Matrix<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_difference_op<int>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/binomial_logit_lpmf.hpp:83:41: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>>' requested here
                                 + (N_val - n_val) * log_inv_logit_neg_alpha);
                                          ^
  file3355f161b61ff1.cpp:2007:18: note: in instantiation of function template specialization 'stan::math::binomial_logit_lpmf<false, std::vector<int>, std::vector<int>, Eigen::Matrix<double, -1, 1, 0>>' requested here
        lp = (lp + binomial_logit_lpmf<false>(y, trials, eta));
                   ^
  file3355f161b61ff1.cpp:4707:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::binom_lpmf<false, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::binom_lpmf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_difference_op<int> (const int &, const int &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36) (const int &, const int &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36) (const int &, const int &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36), const ArrayWrapper<const Map<const Matrix<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>, const ArrayWrapper<const Map<const Matrix<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>>' required here
    : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>, Eigen::Dense>' requested here
    public CwiseBinaryOpImpl<
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_binary.hpp:59:12: note: in instantiation of template class 'Eigen::CwiseBinaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>>' requested here
    return x.binaryExpr(y, f);
             ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:10: note: in instantiation of function template specialization 'stan::math::apply_scalar_binary<Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>, Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>, (lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36), nullptr>' requested here
    return apply_scalar_binary(a, b, [&](const auto& c, const auto& d) {
           ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/binomial_logit_lpmf.hpp:85:17: note: in instantiation of function template specialization 'stan::math::binomial_coefficient_log<Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>, Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>>, nullptr>' requested here
      logp += sum(binomial_coefficient_log(N_val, n_val)) * maximum_size
                  ^
  file3355f161b61ff1.cpp:2007:18: note: in instantiation of function template specialization 'stan::math::binomial_logit_lpmf<false, std::vector<int>, std::vector<int>, Eigen::Matrix<double, -1, 1, 0>>' requested here
        lp = (lp + binomial_logit_lpmf<false>(y, trials, eta));
                   ^
  file3355f161b61ff1.cpp:4707:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::binom_lpmf<false, Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::binom_lpmf<false>(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36) (const int &, const int &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  In file included from <built-in>:1:
  In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Dense:1:
  In file included from /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/Core:367:
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_rsqrt_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
    typedef typename std::result_of<T>::type type1;
                          ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_rsqrt_op<double> (const double &)>' requested here
    typedef typename result_of<
                     ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_rsqrt_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
  template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                         ^
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_rsqrt_op<double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
    : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /tmp/Rtmp0SiQL9/RLIBS_3283c359458f15/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_rsqrt_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, Eigen::Dense>' requested here
  class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                              ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/inv_sqrt.hpp:58:47: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_rsqrt_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>>' requested here
        x, [](const auto& v) { return v.array().rsqrt(); });
                                                ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_vector_unary.hpp:48:24: note: in instantiation of function template specialization 'stan::math::inv_sqrt(const Eigen::Matrix<double, -1, 1, 0> &)::(anonymous class)::operator()<Eigen::Matrix<double, -1, 1, 0>>' requested here
                         f(x));
                         ^
  /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/inv_sqrt.hpp:57:41: note: in instantiation of function template specialization 'stan::math::apply_vector_unary<Eigen::Matrix<double, -1, 1, 0>>::apply<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/inv_sqrt.hpp:58:10), Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
    return apply_vector_unary<Container>::apply(
                                          ^
  file3355f161b61ff1.cpp:2469:20: note: in instantiation of function template specialization 'stan::math::inv_sqrt<Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
              return inv_sqrt(eta);
                     ^
  file3355f161b61ff1.cpp:4774:63: note: in instantiation of function template specialization 'model3355f13bc2340f_User_defined_functions_namespace::linkinv_inv_gaussian<Eigen::Matrix<double, -1, 1, 0>>' requested here
   return model3355f13bc2340f_User_defined_functions_namespace::linkinv_inv_gaussian(
                                                                ^
  /usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_rsqrt_op<double> (const double &)>' has been explicitly marked deprecated here
  template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                   ^
  /usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                          ^
  /usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  #      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                  ^
  108 warnings and 16 errors generated.
  make[1]: *** [/data/gannet/ripley/R/R-clang/etc/Makeconf:198: file3355f161b61ff1.o] Error 1
  make[1]: Leaving directory '/tmp/Rtmp0SiQL9/working_dir/Rtmp1Komrz/sourceCpp-x86_64-pc-linux-gnu-1.0.11/sourcecpp_3355f1577d6587'
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_stan_functions.R:64:1'): (code run outside of `test_that()`) ───
  Error in `expose_stan_functions(stanc_ret, rebuild = TRUE, verbose = TRUE)`: Compilation failed!
  Backtrace:
      ▆
   1. └─rstan::expose_stan_functions(stanc_ret, rebuild = TRUE, verbose = TRUE) at test_stan_functions.R:64:0
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1 ]
  Error: Test failures
  Execution halted