This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Associating C++ new with constructor
- From: Daniel Jacobowitz <drow at false dot org>
- To: Ross Boylan <ross at biostat dot ucsf dot edu>
- Cc: gdb at sourceware dot org
- Date: Thu, 15 Feb 2007 06:50:14 -0500
- Subject: Re: Associating C++ new with constructor
- References: <20070215073516.GW5871@wheat.betterworld.us>
On Wed, Feb 14, 2007 at 11:35:16PM -0800, Ross Boylan wrote:
> Does that have any chance of working with any generality?
No, none. The compiler can do an arbitrary amount of work between the
two calls. They can end up with branches in between, or a call to new
could be used to conditionally create one of two objects that happen
to have the same size.
--
Daniel Jacobowitz
CodeSourcery