This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24996] [4.0/4.1/4.2 Regression] ICE on throw code
- From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2006 08:53:11 -0000
- Subject: [Bug c++/24996] [4.0/4.1/4.2 Regression] ICE on throw code
- References: <bug-24996-8383@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from rakdver at gcc dot gnu dot org 2006-01-23 08:53 -------
One more question; how is the throw code supposed to work?
We allocate D.2069, initialize it, if there is a problem
during it initialization, we deallocate it, then
pass it to __cxa_throw anyway? This does not make much
sense to me.
TARGET_EXPR <D.2069, __cxa_allocate_exception (1)>;
try
{
*(struct logic_error *) D.2069 = exp;
}
catch
{
__cxa_free_exception (D.2069);
};
__cxa_throw (D.2069, (void *) &_ZTI11logic_error, 0B);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24996