This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/42649] Optimizer breaks boost shared_ptr
- From: "rlogel at navtech dot aero" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2010 16:46:15 -0000
- Subject: [Bug c++/42649] Optimizer breaks boost shared_ptr
- References: <bug-42649-18644@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rlogel at navtech dot aero 2010-01-07 16:46 -------
Created an attachment (id=19500)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19500&action=view)
Shared Pointer Test Program
This test program shows that the shared_ptr reference counter isn't being
incremented during assignment. As a result the pointer can get deleted before
all references are destructed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42649