Opened 14 years ago

Closed 14 years ago

Last modified 46 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: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

compiling 

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

or 

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

via

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
homepage.

Change History (2)

comment:1 Changed 14 years ago by simonpj

Logged In: YES 
user_id=50165

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 14 years ago by simonpj

  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.