[commit: ghc] master: Make splitStrProdDmd (and similarly Use) more robust (2e362dd)
git at git.haskell.org
git at git.haskell.org
Fri Jun 20 07:17:04 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/2e362ddebf2286409b7423d3dd49152117c1ae56/ghc
>---------------------------------------------------------------
commit 2e362ddebf2286409b7423d3dd49152117c1ae56
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Thu Jun 19 09:46:24 2014 +0100
Make splitStrProdDmd (and similarly Use) more robust
The issue here is avoiding a GHC crash when a program uses
unsafeCoerce is a dangerous (or even outright-wrong) way.
See Trac #9208
>---------------------------------------------------------------
2e362ddebf2286409b7423d3dd49152117c1ae56
compiler/basicTypes/Demand.lhs | 52 ++++++-------
testsuite/tests/stranal/should_compile/T9208.hs | 98 +++++++++++++++++++++++++
testsuite/tests/stranal/should_compile/all.T | 2 +-
3 files changed, 123 insertions(+), 29 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 2e362ddebf2286409b7423d3dd49152117c1ae56
More information about the ghc-commits
mailing list