|
[ ghc-Bugs-753777 ] Unboxed tuples as values: msg#00050lang.haskell.glasgow.bugs
Bugs item #753777, was opened at 2003-06-13 07:16 Message generated for change (Comment added) made by simonpj You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=753777&group_id=8032 Category: Compiler (Type checker) Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Simon Peyton Jones (simonpj) Assigned to: Nobody/Anonymous (nobody) Summary: Unboxed tuples as values Initial Comment: Consider type T a = Int -> (# Int, Int #) f :: T a -> T a f t = \x -> case t x of r -> r gives the following error message: ghc-5.04.1: panic! (the `impossible' happened, GHC version 5.04.1): codeGen/CgRetConv.lhs:83: Non-exhaustive patterns in function dataReturnConvPrim Trouble is that 'r' is bound to an unboxed tuple. This should fail, but in 5.04.1 it crashes the compiler. In 6.0 it's worse: the code will core dump because it enters R1. But it should be rejected in the type checker. ---------------------------------------------------------------------- >Comment By: Simon Peyton Jones (simonpj) Date: 2003-12-31 16:58 Message: Logged In: YES user_id=50165 Fixed, at last. Test is tcfail115.hs The error message is still poor, but at least it now fails typechecking ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=753777&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Hello world fails on Win32, Simon Peyton-Jones |
|---|---|
| Next by Date: | [ ghc-Bugs-753780 ] (->) used prefix doesn't work with unboxed kinds, SourceForge.net |
| Previous by Thread: | internal error reported, David Roundy |
| Next by Thread: | [ ghc-Bugs-753780 ] (->) used prefix doesn't work with unboxed kinds, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |