This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: calling destructors without calling constructors! for static object
- To: igord at research dot nj dot nec dot com
- Subject: Re: calling destructors without calling constructors! for static object
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sat, 11 Dec 1999 13:27:30 +0100
- CC: bug-gcc at gnu dot org, igord at research dot nj dot nec dot com
- References: <199912102258.RAA24732@borg9.nj.nec.com>
> The following code demonstrates what I would call a bug.
> It calls global destructor for C although C was never constructed!
Thanks for your bug report. This is a known problem: g++ currently
builds an array of objects to be destructed at compile time. This has
a number of limitations; your code exposes one of them.
Regards,
Martin