|
RE: ghc-6.0 compiler bug: msg#00035lang.haskell.glasgow.bugs
Yes, this is a known bug, but thank you for reporting it anyway. I'm going to fix it as part of my next sweep though. I enclose a message that gives a workaround. Simon | -----Original Message----- | From: glasgow-haskell-bugs-admin@xxxxxxxxxxx [mailto:glasgow-haskell-bugs-admin@xxxxxxxxxxx] On | Behalf Of Ch. A. Herrmann | Sent: 05 June 2003 14:28 | To: glasgow-haskell-bugs@xxxxxxxxxxx | Subject: ghc-6.0 compiler bug | | Hi, | | playing around with partial evaluation, | I encountered the following bug: | | 65> ghc --make -fglasgow-exts -package haskell-src Main.hs -o Main -ddump-splices | Chasing modules from: Main.hs | Compiling Power ( Power.hs, ./Power.o ) | Compiling Main ( Main.hs, ./Main.o ) | ghc-6.0: panic! (the `impossible' happened, GHC version 6.0): | nameModule x {- v a1BE -} | | Please report it as a compiler bug to glasgow-haskell-bugs@xxxxxxxxxxx, | or http://sourceforge.net/projects/ghc/. | ------------------------------------------------------------------------ ---------- | module Power where | | import Language.Haskell.THSyntax | | pow :: ExpQ -> Int -> ExpQ | pow x 0 = [| const 1 |] | pow x n | n>0 = [| $x * $(pow x (n-1)) |] | ------------------------------------------------------------------------ ---------- | module Main where | | import Power (pow) | | main = let x = 2 :: Double | in putStrLn (show ($(pow [|x|] 5))) | ------------------------------------------------------------------------ ---------- | Good luck | -- | Dr. Christoph Herrmann | Teaching and Research Assistant | University of Passau, Germany | http://www.fmi.uni-passau.de/~herrmann | _______________________________________________ | Glasgow-haskell-bugs mailing list | Glasgow-haskell-bugs@xxxxxxxxxxx | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs --- Begin Message ---
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: bug with (##) operator and -fglasgow-exts, GHC 5.04, 6.0, Tomasz Zielonka |
|---|---|
| Next by Date: | RE: ghc-6.0 compiler bug, Ch. A. Herrmann |
| Previous by Thread: | ghc-6.0 compiler bug, Ch. A. Herrmann |
| Next by Thread: | RE: ghc-6.0 compiler bug, Ch. A. Herrmann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |