Opened 16 years ago

Closed 16 years ago

Last modified 48 years ago

#549 closed bug (Wont Fix)

Simplifier and optimization flags

Reported by: axxl Owned by: nobody
Priority: normal Milestone:
Component: Compiler Version: 5.0
Keywords: Cc:
Operating System: Architecture:
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:



>module Parse where
>import Parsec
>whiteSpace  = skipMany1 (oneOf " ")


>module Parse where
>import Parsec 
>ttoken :: Parser TToken
>ttoken = do { ; return TIf }
>data TToken = TIf


ghc -O2 -funbox-strict-fields
-funfolding-use-threshold30 -package text -c Parse.hs
-o Parse.o

results both times in

ghc-5.00.1: panic! (the `impossible' happened, GHC
version 5.00.1):
	simplCore/Simplify.lhs:1468: Non-exhaustive patterns
in function cat_evals

removing any option compiles.
(the latter also complains about some bad eta expands)

i'm using the linux version distributed from the ghc

Change History (2)

comment:1 Changed 16 years ago by simonpj

Logged In: YES 

Yes, GHC 5.00 and its patches won't work with -funbox-
strict-fields, if a library is compiled with different 
options to the library client.  This is fixed in the head, 
but it's too awkward to back-patch 5.00 (may introduce new 
bugs etc).

We should document this bug, but it's a wont-fix one.

comment:2 Changed 16 years ago by simonpj

Status: assignedclosed
Note: See TracTickets for help on using tickets.