logo       

[ ghc-Bugs-672813 ] bad type does bad things: msg#00054

lang.haskell.glasgow.bugs

Subject: [ ghc-Bugs-672813 ] bad type does bad things

Bugs item #672813, was opened at 2003-01-22 23:41
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=672813&group_id=8032

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Miguel Figueiredo (olliegator)
Assigned to: Nobody/Anonymous (nobody)
Summary: bad type does bad things

Initial Comment:
If I create a type like this:

data Test a = T a
deriving Show a

I get:

*Main> :l test.hs
Compiling Main ( teste.hs, interpreted )
ghc-5.04.2: panic! (the `impossible' happened, GHC
version 5.04.2):
nameModule a{-r1qo-}

Please report it as a compiler bug to
glasgow-haskell-bugs@xxxxxxxxxxx,
or http://sourceforge.net/projects/ghc/.


----------------------------------------------------------------------

>Comment By: Simon Peyton Jones (simonpj)
Date: 2003-01-23 14:35

Message:
Logged In: YES
user_id=50165

The HEAD does not crash, and I've improved the error
message a bit.

(The program is illegal anyway, not that that matters.)

Test added too (deriving/should_fail/drvfail005)

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=672813&group_id=8032


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise