Fix #14608 by restoring an unboxed tuple check
Commit 714bebff removed a check in the bytecode compiler that caught illegal uses of unboxed tuples (and now sums) in case alternatives, which causes the program in #14608 to panic. This restores the check (using modern, levity-polymorphic vocabulary). Test Plan: make test TEST=T14608 Reviewers: hvr, bgamari, dfeuer, simonpj Reviewed By: dfeuer, simonpj Subscribers: simonpj, rwbarton, thomie, carter GHC Trac Issues: #14608 Differential Revision: https://phabricator.haskell.org/D4276 (cherry picked from commit ecff651f)
Showing
- compiler/ghci/ByteCodeGen.hs 5 additions, 0 deletionscompiler/ghci/ByteCodeGen.hs
- testsuite/tests/ghci/should_fail/T14608.hs 7 additions, 0 deletionstestsuite/tests/ghci/should_fail/T14608.hs
- testsuite/tests/ghci/should_fail/T14608.script 1 addition, 0 deletionstestsuite/tests/ghci/should_fail/T14608.script
- testsuite/tests/ghci/should_fail/T14608.stderr 3 additions, 0 deletionstestsuite/tests/ghci/should_fail/T14608.stderr
- testsuite/tests/ghci/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/ghci/should_fail/all.T
testsuite/tests/ghci/should_fail/T14608.hs
0 → 100644
Please register or sign in to comment