[GHC] #14779: Compiling with -g fails -lint-core checks

GHC ghc-devs at haskell.org
Thu Feb 8 16:55:51 UTC 2018


#14779: Compiling with -g fails -lint-core checks
-------------------------------------+-------------------------------------
        Reporter:  niteria           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:
  (Debugging)                        |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #14122, #14123,   |  Differential Rev(s):
  #8472, #14406                      |
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 I wonder ''why'' that fixes it. Something must have ledt you there.  (This
 is in `preInlineUnconditionally'.

 If we have
 {{{
 let x = "fop#" in f x
 }}}
 where x appears once then I really don't want to disable inlining it.
 Maybe with an `isTopLevel` guard.

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


More information about the ghc-tickets mailing list