#7237: CgCase fails with strict data/functions
------------------------------+---------------------------------------------
Reporter: jwlato | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.6.1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
Comment(by simonpj@…):
commit 84bb8541fffb99d425fcd50532dc4556f4bd7aca
{{{
Author: Simon Peyton Jones <[email protected]>
Date: Sat Sep 15 23:06:20 2012 +0100
Fix Trac #7237; mixup with empty tuples
When converting from Core to STG, we swith pattern matching on
on a *nullary* unboxed tuple into matching using a PrimAlt on
RealWorld#
case e (RealWorld#) of { DEFAULT -> ... }
This semms messy to me, but it works. There was a bug in that we were
changing to PrimAlt, but not using a DEFAULT AltCon.
compiler/stgSyn/CoreToStg.lhs | 11 ++++++++++-
compiler/types/Type.lhs | 16 ++++++++--------
2 files changed, 18 insertions(+), 9 deletions(-)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7237#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