#4870: Compiler panic with SPECIALIZE pragma on function from imported module
---------------------------------+------------------------------------------
    Reporter:  dreixel           |        Owner:                              
        Type:  bug               |       Status:  merge                       
    Priority:  high              |    Milestone:  7.0.3                       
   Component:  Compiler          |      Version:  7.0.1                       
    Keywords:                    |     Testcase:  deSugar/should_compile/T4870
   Blockedby:                    |   Difficulty:                              
          Os:  Unknown/Multiple  |     Blocking:                              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown                
---------------------------------+------------------------------------------
Changes (by simonpj):

  * status:  new => merge
  * testcase:  => deSugar/should_compile/T4870


Comment:

 Thanks for the example.  Fixed by
 {{{
 Wed Jan  5 00:27:12 GMT 2011  [email protected]
   * Fix Trac #4870: get the inlining for an imported INLINABLE Id

   We need the unfolding even for a *recursive* function (indeed
   that's the point) and I was using the wrong function to get it
   (idUnfolding rather than realIdUnfolding).

     M ./compiler/deSugar/DsBinds.lhs -6 +7
 }}}
 Please merge to 7.0 branch

 Simon

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