BUG: ghc-6.6: panic! (the 'impossible' happened)
Albert Fong
fongag at hotmail.com
Wed Dec 13 04:23:34 EST 2006
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: repro.hs
Type: application/octet-stream
Size: 495 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20061213/677c7a4b/repro.obj
-------------- next part --------------
me at ubuntu-LivePC:~/haskell$ ghci -fglasgow-exts repro.hs
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 6.6, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package base ... linking ... done.
[1 of 1] Compiling Main ( repro.hs, interpreted )
Ok, modules loaded: Main.
*Main> f 1 2
ghc-6.6: panic! (the 'impossible' happened)
(GHC version 6.6 for i386-unknown-linux):
nameModule repro{v a1Du}
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
*Main>
-------------- next part --------------
me at ubuntu-LivePC:~/haskell$ /usr/bin/ghc -v -fglasgow-exts repro.hs
Glasgow Haskell Compiler, Version 6.4.2, for Haskell 98, compiled by GHC version 6.4.2
Using package config file: /usr/lib/ghc-6.4.2/package.conf
Hsc static flags: -static
*** Checking old interface for Main:
*** Parser:
*** Renamer/typechecker:
repro.hs:18:42:
Couldn't match kind `* -> * -> *' against `* -> *'
When matching the kinds of `a :: * -> * -> *' and `[] :: * -> *'
Expected type: a
Inferred type: []
In the first argument of `(sum . elems)', namely `[x * y | (x, y) <- g d]'
*** Deleting temp files
Deleting: /tmp/ghc9896.s
Warning: deleting non-existent /tmp/ghc9896.s
me at ubuntu-LivePC:~/haskell$
-------------- next part --------------
me at ubuntu-LivePC:~/haskell$ uname -a
Linux ubuntu-LivePC 2.6.17-10-generic #2 SMP Fri Oct 13 18:45:35 UTC 2006 i686 GNU/Linux
me at ubuntu-LivePC:~/haskell$ ghc -fglasgow-exts repro.hs -v
Glasgow Haskell Compiler, Version 6.6, for Haskell 98, compiled by GHC version 6.6
Using package config file: /usr/local/lib/ghc-6.6/package.conf
wired-in package base mapped to base-2.0
wired-in package rts mapped to rts-1.0
wired-in package haskell98 mapped to haskell98-1.0
wired-in package template-haskell mapped to template-haskell-2.0
Hsc static flags: -static
Created temporary directory: /tmp/ghc9516_0
*** Checking old interface for main:Main:
*** Parser:
*** Renamer/typechecker:
*** Desugar:
Result size = 105
*** Simplify:
Result size = 110
Result size = 104
Result size = 104
*** Tidy Core:
Result size = 197
*** CorePrep:
Result size = 241
*** Stg2Stg:
*** CodeGen:
*** CodeOutput:
*** Deleting temp files:
Deleting: /tmp/ghc9516_0/ghc9516_0.s
*** Deleting temp dirs:
Deleting: /tmp/ghc9516_0
ghc-6.6: panic! (the 'impossible' happened)
(GHC version 6.6 for i386-unknown-linux):
initC: srt
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
More information about the Glasgow-haskell-bugs
mailing list