[GHC] #13027: Core lint errors compiling containers HEAD with GHC HEAD

GHC ghc-devs at haskell.org
Thu Dec 22 03:40:53 UTC 2016


#13027: Core lint errors compiling containers HEAD with GHC HEAD
-------------------------------------+-------------------------------------
        Reporter:  erikd             |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Compiler          |              Version:  8.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Building GHC      |  Unknown/Multiple
  failed                             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by dfeuer):

 Based on my extremely naive reading of the let/app invariant note, I'm
 *guessing* that the simplifier may be doing something weird like

 {{{#!hs
 ptrEq x y = let r = reallyUnsafePtrEquality# x y
             in isTrue# r
 }}}

 when it really should be doing

 {{{#!hs
 ptrEq x y = case reallyUnsafePtrEquality# x y of
               r -> isTrue# r
 }}}

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


More information about the ghc-tickets mailing list