Description of problem: On compiling several files from the TAO open-source CORBA software (such as TAO/tao/ObjectKey_Table.cpp), the compiler runs forever when compiling with both optimization and debug info enabled. With either optimization or debug info disabled the compile completes normally. Version-Release number of selected component (if applicable): gcc-3.4.6-3 How reproducible: Every time Steps to Reproduce: 1. Compile attached preprocessed test case with: g++ -O3 -g -c -o ObjectKey_Table.o ObjectKey_Table.cpp 2. Also try with just -O3 and just -g Actual results: Compiler runs forever and never finishes Expected results: Compile eventually completes Additional info:
Created attachment 142780 [details] Test case to reproduce compiler hang
This is endless loop in vt_find_locations, very likely duplicate of #216695. As a workaround, compile with -O3 -g -fno-var-tracking.
Patch that fixes the bug attached to bug 216695.
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 the 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. http://rhn.redhat.com/errata/RHSA-2007-0220.html