#5252: UNPACK without optimisation leads to panic
---------------------------+------------------------------------------------
  Reporter:  simonpj       |          Owner:                  
      Type:  bug           |         Status:  closed          
  Priority:  normal        |      Milestone:                  
 Component:  Compiler      |        Version:  7.0.3           
Resolution:  fixed         |       Keywords:                  
  Testcase:                |      Blockedby:                  
Difficulty:                |             Os:  Unknown/Multiple
  Blocking:                |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown  |  
---------------------------+------------------------------------------------
Changes (by simonpj):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 Fixed by
 {{{
 commit 792449f555bb4dfa8e718079f6d42dc9babe938a
 Author: Simon Peyton Jones <[email protected]>
 Date:   Sat Jun 11 14:26:34 2011 +0100

     Ignore UNPACK pragmas with OmitInterfacePragmas is on (fixes Trac
 #5252)

     The point here is that if a data type chooses a representation that
     unpacks an argument field, the representation of the argument field
     must be visible to clients.  And it may not be if OmitInterfacePragmas
     is on.

 >---------------------------------------------------------------

  compiler/typecheck/TcInstDcls.lhs   |    3 +-
  compiler/typecheck/TcTyClsDecls.lhs |   44
 +++++++++++++++++-----------------
  2 files changed, 23 insertions(+), 24 deletions(-)
 }}}

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