[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 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

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

2014-07-02 Thread A.Finch at lancaster dot ac.uk
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: A.Finch at lancaster dot ac.uk Created attachment 33046 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33046&action=edit Log of compilation In a simple class (LocalGeometryLock) d