// PR c++/23056 // { dg-do compile } template struct S { virtual ~S(); }; void foo () { static_cast("Foo"); } S a;