Make sure rule LHSs are simplified
SpecConstr was generating a rule LHS with nested casts, which the simplifier then optimised away. Result: unbound template variables. Easily fixed. See Note [SpecConstr call patterns]
Showing
- compiler/specialise/SpecConstr.hs 21 additions, 4 deletionscompiler/specialise/SpecConstr.hs
- testsuite/tests/simplCore/should_compile/T10602.hs 19 additions, 27 deletionstestsuite/tests/simplCore/should_compile/T10602.hs
- testsuite/tests/simplCore/should_compile/T10602b.hs 20 additions, 0 deletionstestsuite/tests/simplCore/should_compile/T10602b.hs
- testsuite/tests/simplCore/should_compile/all.T 1 addition, 1 deletiontestsuite/tests/simplCore/should_compile/all.T
Loading
Please register or sign in to comment