#5550: GHC infinite loop when compiling vector
---------------------------------+------------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.2.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Changes (by rl):
* owner: rl =>
Comment:
It's definitely a bug in !SpecConstr. Here is a standalone example which
doesn't involve vector:
{{{
import GHC.Exts ( SpecConstrAnnotation(..) )
data SPEC = SPEC | SPEC2
{-# ANN type SPEC ForceSpecConstr #-}
loop :: SPEC -> [Int] -> [Int] -> [Int]
loop SPEC z [] = z
loop SPEC z (x:xs) = loop SPEC (x:z) xs
}}}
It doesn't hang if I remove !ForceSpecConstr annotation and set `-fno-
spec-constr-threshold -fno-spec-constr-count` instead.
I'm not sure when I'll have time to investigate more so I'll unassign the
ticket for now.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5550#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs