>It turns out that removing -fvolatile makes the problem go away, and the
>this pointers match up.  Anyone have any idea why?  Thanks!

It appears that with -fvolatile the destructor code for class MyTest is 
copying the object into its stack frame (and then calling the OtherClass 
destructor on the copy).  This also happens with the current gcc 2.95 
sources on ARM, and with egcs 1.1.1 on Intel.

I only have the most rudimentary understanding of C++ so I can't say whether 
this is acceptable behaviour or not.  If it really is a bug I can dig a little 
deeper into what is going on.

By the way, you might like to review the egcs FAQ for details of how we like 
bugs to be reported.

p.


unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to