This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20976] when terminate is called, stack is not unwinded
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Apr 2005 19:23:17 -0000
- Subject: [Bug c++/20976] when terminate is called, stack is not unwinded
- References: <20050412184532.20976.C.Kloukinas@soi.city.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-12 19:23 -------
Ok, this is just implemenation defined behavior.
see 15.3 P 9:
If no matching handler is found in a program, the function terminate() is called; whether or not the
stack is unwound before this call to terminate() is implemenation-defined (15.5.1)
So we define it as not unwinding but we don't document this.
Confirmed for documentation.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |documentation
Last reconfirmed|0000-00-00 00:00:00 |2005-04-12 19:23:16
date| |
Summary|when exceptions are not |when terminate is called,
|caught, destructors of local|stack is not unwinded
|vars are not executed |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20976