// { dg-do compile } // { dg-additional-options "-Wno-psabi -Wno-return-type" } // Ignore warning on some powerpc-linux configurations. // { dg-prune-output "non-standard ABI extension" } typedef float __m128 __attribute__ ((__vector_size__ (16))); const int a = 0; enum { ReadOnlyAccessors }; template struct traits; struct A { enum { value = 1 }; }; template struct EigenBase; template class J; template class DenseCoeffsBase; template class K; template class N; template class CwiseUnaryOp; template class L; template class P; template struct B; template struct C; template struct dense_xpr_base { typedef N type; }; template void padd (Packet); template <> struct C { typedef __m128 type; }; struct D { void packetOp (C::type) { __m128 b = { m_other }; padd (b); } float m_other; }; template class DenseCoeffsBase : public EigenBase { public: typedef typename C::Scalar>::type PacketScalar; }; template class DenseCoeffsBase : public DenseCoeffsBase { public: template void copyPacket (typename traits::Index, J p2) { p2.derived ().template packet (0); } }; template class J : public DenseCoeffsBase { public: using DenseCoeffsBase::derived; template Derived &lazyAssign (const J &); }; template class N : public J { public: template typename B::Type operator*(N); L array (); }; template struct EigenBase { Derived derived () const { return *static_cast (this); } }; template struct F { static void run (Derived1 p1, Derived2 p2) { enum { srcAlignment }; for (;;) p1.template copyPacket (0, p2); } }; template template Derived & J::lazyAssign (const J &p1) { F::run (derived (), p1.derived ()); } template struct G { static Derived run (Derived p1, OtherDerived p2) { p1.lazyAssign (p2); } }; class H { public: H (int, int, int); }; template class M : public dense_xpr_base::type { public: typedef typename traits::Index Index; H m_storage; M (Index, Index, Index) : m_storage (0, 0, 0) {} template void _set_noalias (J p1) { G::run (this->derived (), p1.derived ()); } }; template struct traits > { typedef _Scalar Scalar; typedef int StorageKind; typedef int Index; }; template class K : public M > { public: typedef M Base; typedef K Nested; template K (T0, T1); template K (N p1) : Base (0, 0, 0) { Base::_set_noalias (p1); } }; template struct traits > : traits { }; template class I; template class CwiseUnaryOp : public I::StorageKind> { public: D functor () { return m_functor; } typename XprType::Nested nestedExpression (); D m_functor; }; template class I : public dense_xpr_base >::type { public: typedef CwiseUnaryOp Derived; typedef typename dense_xpr_base >::type Base; typedef Derived Nested; using Base::derived; template void packet (typename traits::Index) { derived ().functor ().packetOp ( derived ().nestedExpression ().template packet (0)); } }; template struct B { typedef P > > > Type; }; template class O : public J { public: P matrix (); }; template struct traits > : traits { }; template class L : public O > { public: typedef L Nested; template typename O::PacketScalar packet (typename traits::Index); }; template struct traits > : traits { }; template class P : public N > { public: N

Base; template void packet (typename traits

::Index) { m_expression.template packet (0); } ExpressionType m_expression; }; int main () { K m (0, 0); K c (0, 0); c = m.array ().matrix () * m; }