From: Tom H. <to...@co...> - 2009-05-14 14:38:55
|
David L wrote: > On Thu, May 14, 2009 at 6:36 AM, Tom Hughes <to...@co...> wrote: >> David L wrote: >> >>> ==3121== Conditional jump or move depends on uninitialised value(s) >>> ==3121== at 0x804852F: main (main.cpp:11) >>> ==3121== Uninitialised value was created by a heap allocation >>> ==3121== at 0x400674E: operator new(unsigned int) >>> (vg_replace_malloc.c:224) >>> ==3121== by 0x8048510: main (main.cpp:9) >>> d equals zero. >>> myclass size is 2 >> What is printing that last line? The code you gave has nothing in it that >> would print that? > > oops... I was trying to simplify the example that I posted, so I removed > that printf from the example code, but I forgot to remove it from the > output. Here's the actual code: Thanks. I don't think it actually makes any difference though. I can reproduce what you're seeing on F10 x86 with the original program. Tom -- Tom Hughes (to...@co...) http://www.compton.nu/ |