| 1 |
// PR ipa/105306 |
| 2 |
// { dg-do compile } |
| 3 |
// { dg-options "-Ofast" } |
| 4 |
|
| 5 |
#pragma GCC optimize 0 |
| 6 |
template <typename T> void foo (T); |
| 7 |
struct B { ~B () {} }; |
| 8 |
struct C { B f; }; |
| 9 |
template <typename> struct E { |
| 10 |
void bar () { foo (g); } |
| 11 |
C g; |
| 12 |
}; |
| 13 |
template class E<char>; |