Bug 527510

Summary: Internal compiler error from gcc
Product: Red Hat Enterprise Linux 5 Reporter: anthony.devivi
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: high Docs Contact:
Priority: low    
Version: 5.0CC: mnowak, pmuller
Target Milestone: rc   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: gcc-4.1.2-49.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-13 23:57:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Preprocessed source file
none
gcc41-pr41063.patch none

Description anthony.devivi 2009-10-06 17:37:18 UTC
Created attachment 363867 [details]
Preprocessed source file

Description of problem: Compilation fails with the following output:

zenstringtest.cpp:6758: internal compiler error: in output_die, at dwarf2out.c:7121
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cciRFBUK.out file, please attach this to your bugreport.
make: *** [/ngs_storage/buildforgeprojects/NGS_Linux_Build/NGS_LINUX_BUILD_241/obj/debug/zenstringtest/./zenstringtest.o] Error 1

Attached preprocessed source file

Version-Release number of selected component (if applicable): gcc (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52)


How reproducible: Compile cpp file


Steps to Reproduce:
1. Compile cpp file
2.
3.
  
Actual results: Error message, failed compilation


Expected results: Object file, successful compilation


Additional info: Preprocessed source file attached

Comment 1 Jakub Jelinek 2010-09-02 16:05:42 UTC
Reduced testcase:
// { dg-do compile }
// { dg-options "-g" }

struct S
{
  virtual ~S () {}
};

void
foo ()
{
  struct T
  {
    T () {}
    void bar ()
    {
      struct U : public S
      {
        T t;
        U () : t () {}
      };
    }
  } t;
}

Comment 2 Jakub Jelinek 2010-09-03 18:48:22 UTC
Created attachment 442958 [details]
gcc41-pr41063.patch

So far only lightly tested backport of the fix.

Comment 3 Jakub Jelinek 2010-09-27 06:33:09 UTC
In gcc-4.1.2-49.el5

Comment 8 errata-xmlrpc 2011-01-13 23:57:50 UTC
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.

http://rhn.redhat.com/errata/RHSA-2011-0025.html