Skip to content

ghc-5.00.1 panic on UU_Pretty_ext.hs

ghc-5.00.1 on RH7.1 using Manuel Chakravarty's RPMs

using (possibly a somewhat old version of) Doaitse 
Swierstra's parsing/printing combinators.

Attached is a tarball of all the files used in the 
compilation sequence below.

ghc -syslib util -syslib lang -c -O2 -O2-for-C -cpp -
DBEGIN_GHC_ONLY='-}' -DEND_
_ONLY='{-' -o UU_Parsing.o UU_Parsing.hs

UU_Parsing.hs:105: Warning: Pattern match(es) are 
overlapped in the definition o
unction `choose'':
            choose' _ _ _ = ...
ghc -syslib util -syslib lang -c -O2 -O2-for-C 
UU_Parsing_ext.hs
ghc -syslib util -syslib lang -c -O2 -O2-for-C 
UU_Scanner.hs
ghc -syslib util -syslib lang -c -O2 -O2-for-C 
UU_Pretty.hs
ghc -syslib util -syslib lang -c -O2 -O2-for-C 
UU_Pretty_ext.hs
ghc-5.00.1: panic! (the `impossible' happened, GHC 
version 5.00.1):
        CPR Analysis tried to take the lub of a 
function and a tuple

Trac metadata
Trac field Value
Version 5.0
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information