The g++6 errors are a bit more informative and contains this hint (my emphasis with **):
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:984:15: note:
deduced conflicting types for parameter 'AccPacketType'
('**std::complex<stan::math::var>**' and
'Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket
{aka **std::complex<double>**}')
traits.madd(A0, B_0, C1, T0); \
among the error novel output the start of which I repeat below.
In file included from lib/eigen_3.3.3/Eigen/Core:470:0,
from lib/eigen_3.3.3/Eigen/Dense:1,
from ./stan/math/prim/mat/fun/Eigen.hpp:13,
from ./stan/math/rev/mat.hpp:4,
from ./stan/math.hpp:148,
from ./test/unit/math/is_finite.hpp:4,
from ./test/unit/math/test_ad.hpp:5,
from test/unit/math/rev/core/std_complex_test.cpp:1:
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h: In instantiation of 'void Eigen::internal::gebp_kernel<LhsScalar, RhsScalar, Index, DataMapper, mr, nr, ConjugateLhs, ConjugateRhs>::operator()(const DataMapper&, const LhsScalar*, const RhsScalar*, Index, Index, Index, Eigen::internal::gebp_kernel<LhsScalar, RhsScalar, Index, DataMapper, mr, nr, ConjugateLhs, ConjugateRhs>::ResScalar, Index, Index, Index, Index) [with LhsScalar = std::complex<stan::math::var>; RhsScalar = std::complex<double>; Index = long int; DataMapper = Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>; int mr = 2; int nr = 4; bool ConjugateLhs = false; bool ConjugateRhs = false; Eigen::internal::gebp_kernel<LhsScalar, RhsScalar, Index, DataMapper, mr, nr, ConjugateLhs, ConjugateRhs>::ResScalar = std::complex<stan::math::var>]':
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralMatrixMatrix.h:194:15: required from 'static void Eigen::internal::general_matrix_matrix_product<Index, LhsScalar, LhsStorageOrder, ConjugateLhs, RhsScalar, RhsStorageOrder, ConjugateRhs, 0>::run(Index, Index, Index, const LhsScalar*, Index, const RhsScalar*, Index, Eigen::internal::general_matrix_matrix_product<Index, LhsScalar, LhsStorageOrder, ConjugateLhs, RhsScalar, RhsStorageOrder, ConjugateRhs, 0>::ResScalar*, Index, Eigen::internal::general_matrix_matrix_product<Index, LhsScalar, LhsStorageOrder, ConjugateLhs, RhsScalar, RhsStorageOrder, ConjugateRhs, 0>::ResScalar, Eigen::internal::level3_blocking<LhsScalar, RhsScalar>&, Eigen::internal::GemmParallelInfo<Index>*) [with Index = long int; LhsScalar = std::complex<stan::math::var>; int LhsStorageOrder = 0; bool ConjugateLhs = false; RhsScalar = std::complex<double>; int RhsStorageOrder = 0; bool ConjugateRhs = false; Eigen::internal::general_matrix_matrix_product<Index, LhsScalar, LhsStorageOrder, ConjugateLhs, RhsScalar, RhsStorageOrder, ConjugateRhs, 0>::ResScalar = std::complex<stan::math::var>]'
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralMatrixMatrix.h:226:14: required from 'void Eigen::internal::gemm_functor<Scalar, Index, Gemm, Lhs, Rhs, Dest, BlockingType>::operator()(Index, Index, Index, Index, Eigen::internal::GemmParallelInfo<Index>*) const [with Scalar = std::complex<stan::math::var>; Index = long int; Gemm = Eigen::internal::general_matrix_matrix_product<long int, std::complex<stan::math::var>, 0, false, std::complex<double>, 0, false, 0>; Lhs = Eigen::Matrix<std::complex<stan::math::var>, -1, -1>; Rhs = Eigen::Matrix<std::complex<double>, -1, -1>; Dest = Eigen::Matrix<std::complex<stan::math::var>, -1, -1>; BlockingType = Eigen::internal::gemm_blocking_space<0, std::complex<stan::math::var>, std::complex<double>, -1, -1, -1, 1, false>]'
lib/eigen_3.3.3/Eigen/src/Core/products/Parallelizer.h:97:7: required from 'void Eigen::internal::parallelize_gemm(const Functor&, Index, Index, Index, bool) [with bool Condition = true; Functor = Eigen::internal::gemm_functor<std::complex<stan::math::var>, long int, Eigen::internal::general_matrix_matrix_product<long int, std::complex<stan::math::var>, 0, false, std::complex<double>, 0, false, 0>, Eigen::Matrix<std::complex<stan::math::var>, -1, -1>, Eigen::Matrix<std::complex<double>, -1, -1>, Eigen::Matrix<std::complex<stan::math::var>, -1, -1>, Eigen::internal::gemm_blocking_space<0, std::complex<stan::math::var>, std::complex<double>, -1, -1, -1, 1, false> >; Index = long int'
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralMatrixMatrix.h:484:9: required from 'static void Eigen::internal::generic_product_impl<Lhs, Rhs, Eigen::DenseShape, Eigen::DenseShape, 8>::scaleAndAddTo(Dest&, const Lhs&, const Rhs&, const Scalar&) [with Dest = Eigen::Matrix<std::complex<stan::math::var>, -1, -1>; Lhs = Eigen::Matrix<std::complex<stan::math::var>, -1, -1>; Rhs = Eigen::Matrix<std::complex<double>, -1, -1>; Eigen::internal::generic_product_impl<Lhs, Rhs, Eigen::DenseShape, Eigen::DenseShape, 8>::Scalar = std::complex<stan::math::var>]'
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralMatrixMatrix.h:435:20: required from 'static void Eigen::internal::generic_product_impl<Lhs, Rhs, Eigen::DenseShape, Eigen::DenseShape, 8>::evalTo(Dst&, const Lhs&, const Rhs&) [with Dst = Eigen::Matrix<std::complex<stan::math::var>, -1, -1>; Lhs = Eigen::Matrix<std::complex<stan::math::var>, -1, -1>; Rhs = Eigen::Matrix<std::complex<double>, -1, -1>]'
lib/eigen_3.3.3/Eigen/src/Core/ProductEvaluators.h:124:75: required from 'Eigen::internal::product_evaluator<Eigen::Product<Lhs, Rhs, Option>, ProductTag, LhsShape, RhsShape>::product_evaluator(const XprType&) [with Lhs = Eigen::Matrix<std::complex<stan::math::var>, -1, -1>; Rhs = Eigen::Matrix<std::complex<double>, -1, -1>; int Options = 0; int ProductTag = 8; LhsShape = Eigen::DenseShape; RhsShape = Eigen::DenseShape; typename Eigen::internal::traits<typename Eigen::Product<Lhs, Rhs, Option>::Rhs>::Scalar = std::complex<double>; typename Eigen::internal::traits<typename Eigen::Product<Lhs, Rhs, Option>::Lhs>::Scalar = std::complex<stan::math::var>; Eigen::internal::product_evaluator<Eigen::Product<Lhs, Rhs, Option>, ProductTag, LhsShape, RhsShape>::XprType = Eigen::Product<Eigen::Matrix<std::complex<stan::math::var>, -1, -1>, Eigen::Matrix<std::complex<double>, -1, -1>, 0>]'
lib/eigen_3.3.3/Eigen/src/Core/ProductEvaluators.h:35:70: required from 'Eigen::internal::evaluator<Eigen::Product<Lhs, Rhs, Option> >::evaluator(const XprType&) [with Lhs = Eigen::Matrix<std::complex<stan::math::var>, -1, -1>; Rhs = Eigen::Matrix<std::complex<double>, -1, -1>; int Options = 0; Eigen::internal::evaluator<Eigen::Product<Lhs, Rhs, Option> >::XprType = Eigen::Product<Eigen::Matrix<std::complex<stan::math::var>, -1, -1>, Eigen::Matrix<std::complex<double>, -1, -1>, 0>]'
lib/eigen_3.3.3/Eigen/src/Core/DenseCoeffsBase.h:144:24: required from 'Eigen::DenseCoeffsBase<Derived, 0>::CoeffReturnType Eigen::DenseCoeffsBase<Derived, 0>::coeff(Eigen::Index) const [with Derived = Eigen::Product<Eigen::Matrix<std::complex<stan::math::var>, -1, -1>, Eigen::Matrix<std::complex<double>, -1, -1>, 0>; Eigen::DenseCoeffsBase<Derived, 0>::CoeffReturnType = const std::complex<stan::math::var>; Eigen::Index = long int]'
lib/eigen_3.3.3/Eigen/src/Core/DenseCoeffsBase.h:181:19: required from 'Eigen::DenseCoeffsBase<Derived, 0>::CoeffReturnType Eigen::DenseCoeffsBase<Derived, 0>::operator()(Eigen::Index) const [with Derived = Eigen::Product<Eigen::Matrix<std::complex<stan::math::var>, -1, -1>, Eigen::Matrix<std::complex<double>, -1, -1>, 0>; Eigen::DenseCoeffsBase<Derived, 0>::CoeffReturnType = const std::complex<stan::math::var>; Eigen::Index = long int]'
test/unit/math/rev/core/std_complex_test.cpp:1653:15: required from here
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:980:15: error: no matching function for call to 'Eigen::internal::gebp_traits<std::complex<stan::math::var>, std::complex<double>, false, false>::madd(Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::LhsPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::AccPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket&)'
traits.madd(A0, B_0, C0, T0); \
^
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:999:13: note: in expansion of macro 'EIGEN_GEBP_ONESTEP'
EIGEN_GEBP_ONESTEP(0);
^~~~~~~~~~~~~~~~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:435:28: note: candidate: template<class LhsPacketType, class RhsPacketType, class AccPacketType> void Eigen::internal::gebp_traits<_LhsScalar, _RhsScalar, _ConjLhs, _ConjRhs>::madd(const LhsPacketType&, const RhsPacketType&, AccPacketType&, AccPacketType&) const [with LhsPacketType = LhsPacketType; RhsPacketType = RhsPacketType; AccPacketType = AccPacketType; _LhsScalar = std::complex<stan::math::var>; _RhsScalar = std::complex<double>; bool _ConjLhs = false; bool _ConjRhs = false]
EIGEN_STRONG_INLINE void madd(const LhsPacketType& a, const RhsPacketType& b, AccPacketType& c, AccPacketType& tmp) const
^~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:435:28: note: template argument deduction/substitution failed:
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:980:15: note: deduced conflicting types for parameter 'AccPacketType' ('std::complex<stan::math::var>' and 'Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket {aka std::complex<double>}')
traits.madd(A0, B_0, C0, T0); \
^
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:999:13: note: in expansion of macro 'EIGEN_GEBP_ONESTEP'
EIGEN_GEBP_ONESTEP(0);
^~~~~~~~~~~~~~~~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:981:15: error: no matching function for call to 'Eigen::internal::gebp_traits<std::complex<stan::math::var>, std::complex<double>, false, false>::madd(Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::LhsPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::AccPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket&)'
traits.madd(A1, B_0, C4, T0); \
^
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:999:13: note: in expansion of macro 'EIGEN_GEBP_ONESTEP'
EIGEN_GEBP_ONESTEP(0);
^~~~~~~~~~~~~~~~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:435:28: note: candidate: template<class LhsPacketType, class RhsPacketType, class AccPacketType> void Eigen::internal::gebp_traits<_LhsScalar, _RhsScalar, _ConjLhs, _ConjRhs>::madd(const LhsPacketType&, const RhsPacketType&, AccPacketType&, AccPacketType&) const [with LhsPacketType = LhsPacketType; RhsPacketType = RhsPacketType; AccPacketType = AccPacketType; _LhsScalar = std::complex<stan::math::var>; _RhsScalar = std::complex<double>; bool _ConjLhs = false; bool _ConjRhs = false]
EIGEN_STRONG_INLINE void madd(const LhsPacketType& a, const RhsPacketType& b, AccPacketType& c, AccPacketType& tmp) const
^~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:435:28: note: template argument deduction/substitution failed:
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:981:15: note: deduced conflicting types for parameter 'AccPacketType' ('std::complex<stan::math::var>' and 'Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket {aka std::complex<double>}')
traits.madd(A1, B_0, C4, T0); \
^
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:999:13: note: in expansion of macro 'EIGEN_GEBP_ONESTEP'
EIGEN_GEBP_ONESTEP(0);
^~~~~~~~~~~~~~~~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:982:15: error: no matching function for call to 'Eigen::internal::gebp_traits<std::complex<stan::math::var>, std::complex<double>, false, false>::madd(Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::LhsPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::AccPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket&)'
traits.madd(A2, B_0, C8, B_0); \
^
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:999:13: note: in expansion of macro 'EIGEN_GEBP_ONESTEP'
EIGEN_GEBP_ONESTEP(0);
^~~~~~~~~~~~~~~~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:435:28: note: candidate: template<class LhsPacketType, class RhsPacketType, class AccPacketType> void Eigen::internal::gebp_traits<_LhsScalar, _RhsScalar, _ConjLhs, _ConjRhs>::madd(const LhsPacketType&, const RhsPacketType&, AccPacketType&, AccPacketType&) const [with LhsPacketType = LhsPacketType; RhsPacketType = RhsPacketType; AccPacketType = AccPacketType; _LhsScalar = std::complex<stan::math::var>; _RhsScalar = std::complex<double>; bool _ConjLhs = false; bool _ConjRhs = false]
EIGEN_STRONG_INLINE void madd(const LhsPacketType& a, const RhsPacketType& b, AccPacketType& c, AccPacketType& tmp) const
^~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:435:28: note: template argument deduction/substitution failed:
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:982:15: note: deduced conflicting types for parameter 'AccPacketType' ('std::complex<stan::math::var>' and 'Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket {aka std::complex<double>}')
traits.madd(A2, B_0, C8, B_0); \
^
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:999:13: note: in expansion of macro 'EIGEN_GEBP_ONESTEP'
EIGEN_GEBP_ONESTEP(0);
^~~~~~~~~~~~~~~~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:984:15: error: no matching function for call to 'Eigen::internal::gebp_traits<std::complex<stan::math::var>, std::complex<double>, false, false>::madd(Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::LhsPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::AccPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket&)'
traits.madd(A0, B_0, C1, T0); \
^
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:999:13: note: in expansion of macro 'EIGEN_GEBP_ONESTEP'
EIGEN_GEBP_ONESTEP(0);
^~~~~~~~~~~~~~~~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:435:28: note: candidate: template<class LhsPacketType, class RhsPacketType, class AccPacketType> void Eigen::internal::gebp_traits<_LhsScalar, _RhsScalar, _ConjLhs, _ConjRhs>::madd(const LhsPacketType&, const RhsPacketType&, AccPacketType&, AccPacketType&) const [with LhsPacketType = LhsPacketType; RhsPacketType = RhsPacketType; AccPacketType = AccPacketType; _LhsScalar = std::complex<stan::math::var>; _RhsScalar = std::complex<double>; bool _ConjLhs = false; bool _ConjRhs = false]
EIGEN_STRONG_INLINE void madd(const LhsPacketType& a, const RhsPacketType& b, AccPacketType& c, AccPacketType& tmp) const
^~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:435:28: note: template argument deduction/substitution failed:
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:984:15: note: deduced conflicting types for parameter 'AccPacketType' ('std::complex<stan::math::var>' and 'Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket {aka std::complex<double>}')
traits.madd(A0, B_0, C1, T0); \
^
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:999:13: note: in expansion of macro 'EIGEN_GEBP_ONESTEP'
EIGEN_GEBP_ONESTEP(0);
^~~~~~~~~~~~~~~~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:985:15: error: no matching function for call to 'Eigen::internal::gebp_traits<std::complex<stan::math::var>, std::complex<double>, false, false>::madd(Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::LhsPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::AccPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket&)'
traits.madd(A1, B_0, C5, T0); \
^
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:999:13: note: in expansion of macro 'EIGEN_GEBP_ONESTEP'
EIGEN_GEBP_ONESTEP(0);
^~~~~~~~~~~~~~~~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:435:28: note: candidate: template<class LhsPacketType, class RhsPacketType, class AccPacketType> void Eigen::internal::gebp_traits<_LhsScalar, _RhsScalar, _ConjLhs, _ConjRhs>::madd(const LhsPacketType&, const RhsPacketType&, AccPacketType&, AccPacketType&) const [with LhsPacketType = LhsPacketType; RhsPacketType = RhsPacketType; AccPacketType = AccPacketType; _LhsScalar = std::complex<stan::math::var>; _RhsScalar = std::complex<double>; bool _ConjLhs = false; bool _ConjRhs = false]
EIGEN_STRONG_INLINE void madd(const LhsPacketType& a, const RhsPacketType& b, AccPacketType& c, AccPacketType& tmp) const
^~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:435:28: note: template argument deduction/substitution failed:
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:985:15: note: deduced conflicting types for parameter 'AccPacketType' ('std::complex<stan::math::var>' and 'Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket {aka std::complex<double>}')
traits.madd(A1, B_0, C5, T0); \
^
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:999:13: note: in expansion of macro 'EIGEN_GEBP_ONESTEP'
EIGEN_GEBP_ONESTEP(0);
^~~~~~~~~~~~~~~~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:986:15: error: no matching function for call to 'Eigen::internal::gebp_traits<std::complex<stan::math::var>, std::complex<double>, false, false>::madd(Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::LhsPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::AccPacket&, Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket&)'
traits.madd(A2, B_0, C9, B_0); \
^
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:999:13: note: in expansion of macro 'EIGEN_GEBP_ONESTEP'
EIGEN_GEBP_ONESTEP(0);
^~~~~~~~~~~~~~~~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:435:28: note: candidate: template<class LhsPacketType, class RhsPacketType, class AccPacketType> void Eigen::internal::gebp_traits<_LhsScalar, _RhsScalar, _ConjLhs, _ConjRhs>::madd(const LhsPacketType&, const RhsPacketType&, AccPacketType&, AccPacketType&) const [with LhsPacketType = LhsPacketType; RhsPacketType = RhsPacketType; AccPacketType = AccPacketType; _LhsScalar = std::complex<stan::math::var>; _RhsScalar = std::complex<double>; bool _ConjLhs = false; bool _ConjRhs = false]
EIGEN_STRONG_INLINE void madd(const LhsPacketType& a, const RhsPacketType& b, AccPacketType& c, AccPacketType& tmp) const
^~~~
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:435:28: note: template argument deduction/substitution failed:
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:986:15: note: deduced conflicting types for parameter 'AccPacketType' ('std::complex<stan::math::var>' and 'Eigen::internal::gebp_kernel<std::complex<stan::math::var>, std::complex<double>, long int, Eigen::internal::blas_data_mapper<std::complex<stan::math::var>, long int, 0, 0>, 2, 4, false, false>::RhsPacket {aka std::complex<double>}')
traits.madd(A2, B_0, C9, B_0); \
^
lib/eigen_3.3.3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:999:13: note: in expansion of macro 'EIGEN_GEBP_ONESTEP'
EIGEN_GEBP_ONESTEP(0);
^~~~~~~~~~~~~~~~~~
...