| 1 |
// Copied from pr87967.C |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
// { dg-options "-O2 -ftree-vectorize -fno-tree-pre --param vect-epilogues-nomask=1" } |
| 4 |
|
| 5 |
void h(); |
| 6 |
template <typename b> struct k { using d = b; }; |
| 7 |
template <typename b, template <typename> class> using e = k<b>; |
| 8 |
template <typename b, template <typename> class f> |
| 9 |
using g = typename e<b, f>::d; |
| 10 |
struct l { |
| 11 |
template <typename i> using ab = typename i::j; |
| 12 |
}; |
| 13 |
struct n : l { |
| 14 |
using j = g<char *, ab>; |
| 15 |
}; |
| 16 |
class o { |
| 17 |
public: |
| 18 |
long r(); |
| 19 |
}; |
| 20 |
char m; |
| 21 |
char s() { |
| 22 |
if (m) |
| 23 |
return '0'; |
| 24 |
return 'A'; |
| 25 |
} |
| 26 |
class t { |
| 27 |
public: |
| 28 |
typedef char *ad; |
| 29 |
ad m_fn2(); |
| 30 |
}; |
| 31 |
void fn3() { |
| 32 |
char *a; |
| 33 |
t b; |
| 34 |
bool p = false; |
| 35 |
while (*a) { |
| 36 |
h(); |
| 37 |
o c; |
| 38 |
if (*a) |
| 39 |
a++; |
| 40 |
if (c.r()) { |
| 41 |
n::j q; |
| 42 |
for (t::ad d = b.m_fn2(), e; d != e; d++) { |
| 43 |
char f = *q; |
| 44 |
*d = f + s(); |
| 45 |
} |
| 46 |
p = true; |
| 47 |
} |
| 48 |
} |
| 49 |
if (p) |
| 50 |
throw; |
| 51 |
} |