1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// PR c++/5118 template <int Count> class d { public: d() { myInt = Count; } int myInt; virtual ~d() {} }; volatile d<5> instD;