[GHC] #7983: Bug in hsc2hs --cross-safe

GHC ghc-devs at haskell.org
Sat Nov 22 04:39:10 UTC 2014


#7983: Bug in hsc2hs --cross-safe
-------------------------------------+-------------------------------------
              Reporter:  singpolyma  |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:  7.10.1
             Component:  hsc2hs      |          Version:  7.6.3
            Resolution:              |         Keywords:
      Operating System:              |     Architecture:  Unknown/Multiple
  Unknown/Multiple                   |       Difficulty:  Unknown
       Type of failure:              |       Blocked By:
  None/Unknown                       |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
Changes (by thomie):

 * difficulty:   => Unknown


Comment:

 This is the error with HEAD (ghc-7.9.20141121):
 {{{
 $ cat test.hsc
 #define U_NO_NUMERIC_VALUE ((double)-123456789.)
 (#const U_NO_NUMERIC_VALUE)

 $ hsc2hs --cross-safe test.hsc

 $ hsc2hs --cross-compile test.hsc
 test.hsc: In function ‘_hsc2hs_test2’:
 test.hsc:3:20: error: storage size of ‘test_array’ isn’t constant
 compilation failed
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/7983#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list