|
[ ghc-Bugs-1291820 ] Strictness problem: msg#00068lang.haskell.glasgow.bugs
Bugs item #1291820, was opened at 2005-09-15 12:21 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1291820&group_id=8032 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Compiler Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nils Anders Danielsson (nilsanders) Assigned to: Nobody/Anonymous (nobody) Summary: Strictness problem Initial Comment: As requested, this is a resubmission (and update) of a previously reported bug, to get it into the bug tracker. The following program should output something involving Correct: > module Main where > f x = case x of > x@True -> \y -> x && y > x@False -> \y -> x && y > main = putStrLn $ f (error "Correct") `seq` "Error" However, whether it does so is a non-trivial function of the GHC version and optimisation settings: GHC version -O2? Correct? ------------------------------ 4.08.1 No Yes 4.08.1 Yes No 5.04.2 No No 5.04.2 Yes Yes 6.0.1 _ No 6.2.2 _ No 6.4 _ No 6.4.1.20050820 _ No All tests were run on a Solaris system. Different fs give different behaviour, at least for 6.0.1. Try e.g. > f x = case x of > True -> id > False -> id ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1291820&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-1277825 ] segmentation fault when profiling large case, SourceForge.net |
|---|---|
| Next by Date: | RE: "strange closure type 37108": MSWin32, 6.4.1 snapshot and other versions, Simon Marlow |
| Previous by Thread: | RE: internal error: scavenge_stack: weird activation record found onstack: 0, Simon Marlow |
| Next by Thread: | [ ghc-Bugs-1292825 ] Warning -fwarn-unused-imports does not go away, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |