Fix Trac #1402: typo in specialiser
authorLemmih <lemmih@gmail.com>
Thu, 7 Jun 2007 18:55:34 +0000 (18:55 +0000)
committerLemmih <lemmih@gmail.com>
Thu, 7 Jun 2007 18:55:34 +0000 (18:55 +0000)
commit7dd96d1d24af338b7d3954943cea6a49278bb431
tree21613103c148a2d57ce620805bda6f923a1d464c
parentbec55bc5799e7579391a257f2e489b8e427d1aa8
Fix Trac #1402: typo in specialiser

This patch fixes a plain bug in the specialiser (rhs_bndrs instead
of rhs_ids) which made GHC crash in obscure cases.

It exposed a case in which we might not do all possible specialisation;
see Note [Specialisation shape].  It's not an important case, but I've
added a warning in DEBUG mode.

Trac #1402.  Test is spec003.hs
compiler/specialise/Specialise.lhs