Opened 10 years ago

Closed 10 years ago

Last modified 44 years ago

#224 closed bug (Fixed)

Problem with where clause and Template Haskell

Reported by: stefanheimann Owned by: nobody
Priority: normal Milestone:
Component: Compiler Version: 6.2.1
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When compiling the two files attached, the following
happens:


$ ./compile.sh 
Chasing modules from: TemplateTryOut.hs
Skipping  Templates        ( ./Templates.hs,
./Templates.o )
Compiling Main             ( TemplateTryOut.hs,
TemplateTryOut.o )
Loading package base ... linking ... done.
Loading package haskell98 ... linking ... done.
Loading package haskell-src ... linking ... done.
compiling template
ghc-6.2.1: panic! (the `impossible' happened, GHC
version 6.2.1):
        nameModule readTread_d1z7

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


I think it's a problem with template haskell. The first
call of 'template' in TemplateTryOut.hs (line 10)
succeeds, as you can see from the message 'compiling
template'. The second call in line 17 fails. The only
difference between these 2 calls is the where clause.

Attachments (1)

ghc-bug.tar.2.gz (236.1 KB) - added by stefanheimann 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by stefanheimann

comment:1 Changed 10 years ago by simonpj

  • Status changed from assigned to closed
Logged In: YES 
user_id=50165

This bug is fixed in the HEAD and in the up-coming 6.2.2

Do test it again when you get 6.2.2!
Note: See TracTickets for help on using tickets.