This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/15662] Segmentation fault (POWERPC ) when an exception is thrown - even if try catch is specified


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]