[GHC] #15907: memo001 causes compile time panic with fails with -O -dannot-lint