#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
---------------------------------+------------------------------------------

Comment(by simonpj):

 Actually now I look at it, the `loop` example says
 {{{
 {-# ANN type SPEC ForceSpecConstr #-}
 }}}
 ie it applies to SPEC, not to lists.  So maybe this condition:
 {{{
   * Specialise even for arguments that are not scrutinised in the loop
         (see argToPat; Trac #4448)
 }}}
 suould apply '''only for arguments of types that are specified as
 `ForceSpecConstr`'''.  In `loop`, we force on SPEC but not on lists! (You
 implemented this, and I never looked at it in detail.)

 That would cure this example. I am not sure whether it'd still make #4448
 work, because there is no example code there.

 Would that do the job?  If so woudl you care to edit `SpecConstr`?

 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5550#comment:9>
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

Reply via email to