1 /* { dg-do compile } */
2 /* { dg-require-effective-target powerpc_p8vector_ok } */
3 /* { dg-options "-mdejagnu-cpu=power8 -O3 -fstack-protector-strong" } */
4 
5 class a {
6   double b[2];
7 public:
8   a();
9 };
10 
11 class c {
12 public:
13   typedef a d;
m_fn1()14   d m_fn1() {
15     a e;
16     return e;
17   }
18 };
19 template <typename f> void operator+(f, typename f::d);
g()20 void g() {
21   c connector;
22   for (;;) {
23     c cut;
24     a h = cut.m_fn1();
25     connector + h;
26   }
27 }
28