Created attachment 358780 [details]
Description of problem:
The attached program when compiled by g++ will crash at runtime. It runs fine when compiled with Sun Studio CC and AIX xlC on their respective platforms. This was reported upstream and a patch has been accepted.
Please include this patch in the gcc44-c++ compilers for RHEL 5.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. g++44 dyncast-segfault.cpp
in synchro_slave_base dtor
in my_object dtor
before DCASTing to my_module*
no seg fault
Created attachment 358964 [details]
The upstream patch applies cleanly to gcc44-4.4.0-6.el5 except for the ChangeLog updates. Attached is a patch minus the ChangeLog chunks.
The patch is now in rawhide gcc.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.