------- Comment #11 from baldrick at gcc dot gnu dot org  2007-06-08 18:46 
-------
> Thank you both for your explanation to a newbie having no experience with
> valgrind tool. I have come up with a simpler version which similar to
> Laurent's. Here it goes.

Thanks - but how is it supposed to work?  You didn't dirty memory
like Laurent did (new+free), so Item will contain null and you'll
get a constraint error in Item.all'Valid.  [If you are very lucky
Item will contain a non-zero value and you will get a segmentation
fault].  I just ran your example a few thousand times and never
saw anything besides constraint error.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32234

Reply via email to