
#7983: Bug in hsc2hs --cross-safe -------------------------------------+------------------------------------- Reporter: singpolyma | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: hsc2hs | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by thomie): This is caused by a regression in GCC from gcc-4.4 to gcc-4.6: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46028 {{{ $ cat Test_hsc_test0.c void _hsc2hs_test1() { static int test_array[(89.) > 0 ? 2 : 1]; } $ /usr/bin/gcc-4.4 -c ./Test_hsc_test0.c $ /usr/bin/gcc-4.6 -c ./Test_hsc_test0.c ./Test_hsc_test0.c: In function ‘_hsc2hs_test1’: ./Test_hsc_test0.c:3:16: error: storage size of ‘test_array’ isn’t constant }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/7983#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler