Skip to content

Fix crash in family instance consistency checking

Patrick requested to merge soulomoon/ghc:T26154 into master

A more proper way to fix #26154 (closed),

The bug is due to the inconsitency between deps closure from interface file and deps closure from hugSomeThingsBelowUs in make mode. It can be reproduce from #26154 (comment 626177).

If a module is missing from the family instance environment built by hugSomeThingsBelowUs, we can safely look it up in the HomePackageTable (hpt), since its presence in the interface file’s dependency closure implies that it has already been compiled.

I also write an minimal test T26154 for the bug.

Edited by Patrick

Merge request reports

Loading