Description of Problem: The destructor of static members in a template class are not called. Version-Release number of selected component (if applicable): gcc 2.96-81, gcc 2.96-99 How Reproducible: 100% Steps to Reproduce: 1. $ g++ -O0 destructor_test.cpp -o destructor_test 2. $ ./destructor_test Actual Results: Simple() Expected Results: Simple() ~Simple() Additional Information: Does not occur with gcc 3.01 or gcc 2.95.2 on the same system. puffin) 17:32:26 test $ rpm -qa | grep glibc compat-glibc-6.2-2.1.3.2 glibc-2.2.2-10 glibc-common-2.2.2-10 glibc-devel-2.2.2-10 glibc-profile-2.2.2-10 Fails with binutils shipped with 7.1 as well as binutils2.11.92.05
Created attachment 39006 [details] Test case demonstrating bug
Ok in g++ 3.2