|
Re: ghc-6.4.1: panic - Prelude.last: empty list: msg#00084lang.haskell.glasgow.bugs
Hello Einar, Sunday, October 30, 2005, 4:20:20 PM, you wrote: EK> I am having problems with GHC 6.4.1 dying with the message: EK> ghc-6.4.1: panic! (the `impossible' happened, GHC version 6.4.1): EK> Prelude.last: empty list EK> The source is nontrivial and contains template haskell. The error EK> seems to appear after byte code generation. are you will be glad to see trivial source of this problem? :) {-# OPTIONS_GHC -fglasgow-exts -fth #-} module Main where main = return () $( [d| |] >>= return.tail) C:\!\Haskell\!!!!>ghc --make -ddump-splices test-derive.hs Chasing modules from: test-derive.hs Compiling Main ( test-derive.hs, test-derive.o ) Loading package base-1.0 ... linking ... done. Loading package haskell98-1.0 ... linking ... done. Loading package template-haskell-1.0 ... linking ... done. ghc.EXE: panic! (the `impossible' happened, GHC version 6.4.1): Prelude.tail: empty list Please report it as a compiler bug to glasgow-haskell-bugs@xxxxxxxxxxx, or http://sourceforge.net/projects/ghc/. as you see, TH sometimes just don't caught exceptions in your TH code. moreover, with -ddump-splices TH can print code it generated and only then panic on error in generation routine! -- Best regards, Bulat mailto:bulatz@xxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-1339991 ] getOpt' checks "non-option options", SourceForge.net |
|---|---|
| Next by Date: | strange closure type 63607, Piotr Wieczorek |
| Previous by Thread: | libraries under ghc, Frederik Eaton |
| Next by Thread: | strange closure type 63607, Piotr Wieczorek |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |