Bug 565466

Summary: g++ 4.4.3 crash
Product: [Fedora] Fedora Reporter: Joel Rosdahl <joel>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: jakub, viprog
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-15 12:48:49 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 crash.cpp
none
crash.cpp none

Description Joel Rosdahl 2010-02-15 12:03:12 UTC
Created attachment 394298 [details]
Preprocessed crash.cpp

Description of problem:

g++ 4.4.3 crashes with a segmentation fault when compiling the attached "crash.cpp" file with -O2 or -Os. This is a regression from g++ 4.4.2, which doesn't crash.

Version-Release number of selected component (if applicable):

gcc-c++-4.4.3-4.fc12.i686

How reproducible:

100%

Steps to Reproduce:

g++ -c -O2 crash.cpp

Actual results:

crash.cpp: In constructor ‘E::E()’:
crash.cpp:56: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cc7kY8V1.out file, please attach this to your bugreport.

Expected results:

No crash.

Additional info:

g++ (GCC) 4.4.3 20100127 (Red Hat 4.4.3-4)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Comment 1 Joel Rosdahl 2010-02-15 12:03:39 UTC
Created attachment 394299 [details]
crash.cpp

Comment 2 Jakub Jelinek 2010-02-15 12:48:49 UTC
This is upstream PR42890 that is already fixed in gcc-4.4.3-5.fc1{2,3} and later.

Comment 3 Jakub Jelinek 2010-02-17 12:38:11 UTC
*** Bug 565925 has been marked as a duplicate of this bug. ***