// PR c++/11878 struct A { virtual ~A(); }; template struct B { T t; }; void foo() { throw B().t; }