Ticket #3922 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

nameModule panic when building numbers package

Reported by: simonmar Owned by: simonpj
Priority: high Milestone: 7.0.1
Component: Compiler Version: 6.13
Keywords: Cc: michael.lesniak@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Compile-time crash Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Building the numbers-2009.8.9 package from Hackage with yesterday's GHC HEAD (2010-03-15):

~/tmp/numbers-2009.8.9 > ./Setup build
Preprocessing library numbers-2009.8.9...
Building numbers-2009.8.9...

Data/Number/Fixed.hs:1:16:
    Warning: -fscoped-type-variables is deprecated: use -XScopedTypeVariables or pragma {-# LANGUAGE ScopedTypeVariables #-} instead
[7 of 9] Compiling Data.Number.CReal ( Data/Number/CReal.hs, dist/build/Data/Number/CReal.o )
ghc-stage2: panic! (the 'impossible' happened)
  (GHC version 6.13.20100315 for x86_64-unknown-linux):
        nameModule $w$cnegate{v r2zR}

Change History

Changed 3 years ago by simonpj

  • owner set to simonpj

I'm on this

Changed 3 years ago by mlesniak

  • cc michael.lesniak@… added

Changed 3 years ago by simonpj

  • status changed from new to closed
  • resolution set to fixed

Thanks for a helpful report. I've fixed this, but it was a while ago now. I think this is the relevant patch

Thu May  6 17:41:35 BST 2010  simonpj@microsoft.com
  * Find the correct external ids when there's a wrapper
  
  We were failing to externalise the wrapper id for a function
  that had one.

    M ./compiler/main/TidyPgm.lhs -2 +9

I have not added a regression test because it's quite hard to elicit the bug with a small program. But I think we are good now.

Simon

Note: See TracTickets for help on using tickets.