Mariano Suarez Alvarez writes:
> Compiling lx (the lexical analyser generator) with -O, everything goes
> smoothly until we get to the main file Lx.hs, on which ghc-3.02 panics
> and dies. The (long!) -v output is included below. If I compile without
> -O, everything is fine.
>
Hi,
thanks - looks like you're being bitten by a bug in how specialisation
info is handled by the compiler. This will hopefully be fixed for
3.03, but in the meantime compile Lx.hs with -fno-specialise
>
> By the way, does ghc treat static data, such
> as the huge literal lists generated by lx, any different from what it does
> other code? Can one, say, force it so assume that those lists will be
> needed strictly, so that it constructs them right away?
>
GHC doesn't try to compile non-character literal lists into static
data.
hth,
--Sigbjorn