This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/15662] Segmentation fault (POWERPC ) when an exception is thrown - even if try catch is specified
- From: "rajanba at nortelnetworks dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 May 2004 14:38:43 -0000
- Subject: [Bug target/15662] Segmentation fault (POWERPC ) when an exception is thrown - even if try catch is specified
- References: <20040526141001.15662.rajanba@nortelnetworks.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rajanba at nortelnetworks dot com 2004-05-26 14:38 -------
It is not the same as 10778. Host is linux on powerpc target machine. Compiled
with options:
-DLINUX -D_SVID_SOURCE=1 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1 -D_GNU_SOURCE=1
-mpowerpc -pthread
As per ISO/ISE 14882:2003 12.2/5, when a reference is bound to temporary, the
temporrary remains in scope till the reference is in scope. It would seem that
the gcc 3.3.1 tries to delete the temporary object refered to by a const
reference upon unwinding the stack - when it should not be attempting to delete
that object.
IMPORTANT NOTE: Happens only when STL is involved and on POWERPC only.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
GCC host triplet| |linux
GCC target triplet| |PowerPC
Resolution|DUPLICATE |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15662