reassign 117513 openc++ thanks On Wed, Nov 14, 2001 at 12:21:27AM -0800, Robert de Forest wrote: > > 1. gets a char* pointer from a func that allocates it with "char* > > result = new char[...]" (and although it does not test the return > > value from "new", this is not the problem here - added check > > nevertheless) > > > > 2. use "delete [] " to free the storage. This is the delete causing > > the segfault. > > > > I higly suspect this to be a g++ bug. I tried with g++ 3.0, but it > > simply won't compile - any hint to fix it will be appreciated :) > > I would be tempted to agree with you, except that it works when built > against libgc5.
At first reading, the assembly code seems to be correct, but I'll have to read it again to be sure - long time since I worked with x86 asm, and it was with the Intel syntax :(. I'm a bit at a loss... I'll have to see that with upstream developpers. Regards, -- Yann Dirson <[EMAIL PROTECTED]> | Why make M$-Bill richer & richer ? Debian-related: <[EMAIL PROTECTED]> | Support Debian GNU/Linux: Pro: <[EMAIL PROTECTED]> | Freedom, Power, Stability, Gratuity http://ydirson.free.fr/ | Check <http://www.debian.org/>