[Bug target/15662] Segmentation fault (POWERPC ) when an exception is thrown - even if try catch is specified
rajanba at nortelnetworks dot com
gcc-bugzilla@gcc.gnu.org
Thu May 27 07:45:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list