Firm Bugtracker - cparser
Viewing Issue Advanced Details
9 firm graph generation crash always 2008-12-04 02:28 2009-01-28 21:55
jeffz  
xt3firm  
normal  
closed 0.9.7  
fixed  
none    
none  
0000009: cparser: ast2firm.c:3227: expression_to_firm: Assertion `is_Const(res)' failed.
The configure script test from Hugs libraries distribution http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-plus-Sep2006.tar.gz [^] attempts to compile the following to determine alignment of char, but cparser aborts.

int main (void)
{
 static int test_array [1 - 2 * !(((long) (&((struct { char c; char ty; } *)0)->ty)) >= 0)];
 test_array [0] = 0;
 return 0;
}
Issue History
2008-12-04 02:28 jeffz New Issue
2008-12-04 12:08 Tron Note Added: 0000010
2008-12-04 12:08 Tron Status new => confirmed
2008-12-07 14:47 xt3firm Status confirmed => assigned
2008-12-07 14:47 xt3firm Assigned To => xt3firm
2008-12-07 14:47 xt3firm Note Added: 0000021
2008-12-07 14:47 xt3firm Status assigned => resolved
2008-12-07 14:47 xt3firm Resolution open => fixed
2009-01-28 21:55 Matze Status resolved => closed

Notes
(0000010)
Tron   
2008-12-04 12:08   
See test case C/cp_error052.c.
(0000021)
xt3firm   
2008-12-07 14:47   
fixed in r24373