Bug 527510 - Internal compiler error from gcc
Summary: Internal compiler error from gcc
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gcc
Version: 5.0
Hardware: i386
OS: Linux
low
high
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-06 17:37 UTC by anthony.devivi
Modified: 2011-05-13 13:22 UTC (History)
2 users (show)

Fixed In Version: gcc-4.1.2-49.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-13 23:57:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Preprocessed source file (1.03 MB, application/octet-stream)
2009-10-06 17:37 UTC, anthony.devivi
no flags Details
gcc41-pr41063.patch (1.27 KB, patch)
2010-09-03 18:48 UTC, Jakub Jelinek
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 41063 0 None None None Never
Red Hat Product Errata RHSA-2011:0025 0 normal SHIPPED_LIVE Low: gcc security and bug fix update 2011-01-13 10:47:58 UTC

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


Note You need to log in before you can comment on or make changes to this bug.