Bug 204651 - Regression in RHBA-2006:0125-8: gcc segfaults
Summary: Regression in RHBA-2006:0125-8: gcc segfaults
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gcc
Version: 4.3
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-30 16:16 UTC by Ben Hutchings
Modified: 2007-11-17 01:14 UTC (History)
0 users

Fixed In Version: 3.4.6-3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-01 07:40:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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).


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