GHC panics and fails to compile the attached file (repro.hs), giving the
following error message:

 

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

 

Similarly, ghci fails when trying to evaluate "f 1 2":

 

[EMAIL PROTECTED]:~/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>

 

This repros on Ubuntu 6.10 with ghc6.6 (compiled from source) and on Cygwin
(WinXP SP2 ENG). Attached are the console output from ghc6.6 and ghci. I've
also thrown in the output from ghc6.4.2, in case it helps.this file fails to
typecheck using that version of ghc.

 

Thanks,

Albert Fong

 

 

PS: I couldn't log the bug through Trac.it looks like the "guest" login
doesn't work.

Attachment: repro.hs
Description: Binary data

[EMAIL PROTECTED]:~/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> 

[EMAIL PROTECTED]:~/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
[EMAIL PROTECTED]:~/haskell$ 


[EMAIL PROTECTED]:~/haskell$ uname -a
Linux ubuntu-LivePC 2.6.17-10-generic #2 SMP Fri Oct 13 18:45:35 UTC 2006 i686 
GNU/Linux

[EMAIL PROTECTED]:~/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


_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to