4 // { dg-options "-fpic" { target fpic } }
6 template <typename T> struct S2
9 t2 operator* () const {}
11 template <typename T> struct S3
15 template <typename T1, typename T2> T2 foo1 (T1 x, T2 y) { y (*x); }
16 template <class T> struct S4
18 T &operator* () const;
23 typedef::S3 <S4 <S7> >::t5 t6;
26 template <class T> struct S9
29 inline t3 &operator[] (unsigned int) {}
31 template <typename T1, typename T2, typename T3, void (&T4) (const T1 &, T3 &)> struct S10
33 S10 (T2 &x, unsigned int y = 0) : u (x), v (y) {}
34 void operator () (const S4 <T1> &x) { T4 (*x, u[v++]); }
41 static void m3 (const S8 &, S15 &);
47 static void m4 (const S7 &,S16 &);
49 typedef S10 <S7, S12, S16, S13::m4> t10;
57 void S11::m3 (const S8 &x, S15 &y)
59 foo1 (x.m1 (), t10 (y.p));