[GHC] #10824: Let-bindings of kind # are processed backwards

GHC ghc-devs at haskell.org
Tue Sep 1 20:32:05 UTC 2015


#10824: Let-bindings of kind # are processed backwards
-------------------------------------+-------------------------------------
              Reporter:  ezyang      |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:
             Component:  Compiler    |           Version:  7.10.1
              Keywords:              |  Operating System:  Unknown/Multiple
          Architecture:              |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
             Test Case:              |        Blocked By:
              Blocking:              |   Related Tickets:
Differential Revisions:              |
-------------------------------------+-------------------------------------
 Consider this module:

 {{{
 {-# LANGUAGE MagicHash #-}
 import GHC.Exts
 main = do let x = error "bar" :: Int#
               y = error "foo" :: Int#
           print (I# x + I# y)
 }}}

 When you run this, you will get the error "foo" and not the error "bar".
 This is backwards!

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


More information about the ghc-tickets mailing list