
#15867: STG scope error -------------------------------------+------------------------------------- Reporter: csabahruska | Owner: sgraf Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 8.7 Resolution: | Keywords: CodeGen Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5310 Wiki Page: | -------------------------------------+------------------------------------- Comment (by sgraf): Hmm. I'm inclined to accept the shadowing, it's like nested lambdas, after all. Also, since free var occurrences never were a problem before (presumably because `StgToCmm` nubs them anyway) and since there are plans in #15754 to get rid of that field altogether, I'm not sure if this really is a sensible thing to lint for. No doubt, the STG is extremely fishy, but if we are going to remove FV occs from `StgRhsClosure` anyway, I don't see great value in fixing these non-severe bugs. Simon is free to overrule me here, in which case I'd be happy to fix this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15867#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler