re PR c++/12491 (Destructor fails to compile when optimizations (inlining) are enabled)