| 1 |
// { dg-do assemble } |
| 2 |
// Origin: Ian Nixon <[email protected]> |
| 3 |
|
| 4 |
class Action { |
| 5 |
public: |
| 6 |
virtual void action () = 0; |
| 7 |
}; |
| 8 |
|
| 9 |
class Var { |
| 10 |
public: |
| 11 |
|
| 12 |
template<class Base> void Add() { |
| 13 |
struct tmp : public Action { |
| 14 |
void action () {} |
| 15 |
}; |
| 16 |
tmp *tp = new tmp; |
| 17 |
} |
| 18 |
|
| 19 |
}; |