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