This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/42649] Optimizer breaks boost shared_ptr



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]