[GHC] #13429: Optimizer produces Core with an infinite <<loop>>
GHC
ghc-devs at haskell.org
Thu Apr 27 18:33:22 UTC 2017
#13429: Optimizer produces Core with an infinite <<loop>>
-------------------------------------+-------------------------------------
Reporter: lehins | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 7.10.4
Component: Compiler | Version: 8.0.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by lehins):
For what it's worth, I figured out a reliable way to avoid the bug, namely
adding an extra constraint `Array X e`.
So changing the type signature of `correlate` to:
`correlate :: (Array X e, Array cs e) => Image X e -> Image cs e -> Image
cs e`
can be used as a trick for working around the bug.
Not sure if it is relevant, but maybe it will help in narrowing down a
possible cause.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13429#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list