[Bug c++/61674] The destructor of a simple class is removed by optimization

2014-07-03 Thread A.Finch at lancaster dot ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61674 --- Comment #6 from Alex Finch --- I guess I should have made that clear. The class has a static variable: static int fLockCount; which counts how many times an object of the class is created. If it is >1, then IsLocked() returns true. The dest

[Bug c++/61674] The destructor of a simple class is removed by optimization

2014-07-02 Thread pangbw at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61674 baoshan changed: What|Removed |Added CC||pangbw at gmail dot com --- Comment #5 from ba

[Bug c++/61674] The destructor of a simple class is removed by optimization

2014-07-02 Thread A.Finch at lancaster dot ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61674 --- Comment #4 from Alex Finch --- I should add that this problem was not observed in gcc 4.4.7 and earlier.

[Bug c++/61674] The destructor of a simple class is removed by optimization

2014-07-02 Thread A.Finch at lancaster dot ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61674 --- Comment #2 from Alex Finch --- Created attachment 33048 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33048&action=edit source file source file attached

[Bug c++/61674] The destructor of a simple class is removed by optimization

2014-07-02 Thread A.Finch at lancaster dot ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61674 --- Comment #3 from Alex Finch --- Created attachment 33049 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33049&action=edit header file header file attached

[Bug c++/61674] The destructor of a simple class is removed by optimization

2014-07-02 Thread A.Finch at lancaster dot ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61674 --- Comment #1 from Alex Finch --- Created attachment 33047 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33047&action=edit .ii file zipped to get under 1000 byte limit added .ii file