Bug 204651

Summary: Regression in RHBA-2006:0125-8: gcc segfaults
Product: Red Hat Enterprise Linux 4 Reporter: Ben Hutchings <bhutchings>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 4.3   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 3.4.6-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-01 07:40: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:

Description Ben Hutchings 2006-08-30 16:16:24 UTC
Description of problem:
GCC segfaults when compiling code that uses a function pointer as a structure
field initialiser. This is a serious regression from the original RHEL4 version
of GCC.

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

How reproducible:
Always.

Steps to Reproduce:
1. Save the following code to test.c:
   void foo(void) {}
   int main(void)
   {
       struct bar { void (*baz)(void); } blah = { foo };
       return 0;
   }
2. Run gcc test.c

Comment 1 Jakub Jelinek 2006-09-01 07:40:49 UTC
Thsi doesn't segfault with gcc-3.4.6-3 (RHEL4 U4 gcc).