Template data deallocation bug?
David Coppit
newspost@coppit.org
Tue May 14 22:47:00 GMT 2002
Hi folks,
Attached is a file that exhibits what I think is a bug in deallocation
of template-based data. I've distilled this from my larger system. The
basic idea of the "token" class is that it does reference counting on
the values. The strange thing is that the reference count during
deallocation goes 3 -> 2 -> 0 instead of 3 -> 2 -> 1 as expected. If I
make set_of_sets local to main(), it works as expected...
Perhaps I'm missing something?
Thanks,
David
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: crash.cpp
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20020514/dcd097f8/attachment.ksh>
More information about the Gcc-bugs
mailing list