|
Invalid binding names in generated Core code: msg#00040lang.haskell.glasgow.bugs
The generation of binding names doesn't seem to work correctly. I have generated Core for Base.lhs by standing in the .../ghc-5.05.20030119/libraries/base directory and giving the command: ../../ghc/compiler/ghc-inplace -H16m -O -fglasgow-exts -cpp -Iinclude -#include HsBase.h -funbox-strict-fields -package-name base -O -Rghc-timing -split-objs -O0 -c GHC/Base.lhs -o GHC/Base.o -ohi GHC/Base.hi What is wrong in Base.hcr is that there are multiple bindings sharing the same name. I guess that this has something to do the the generation of unique binding names. Here is an example, where tpl is bound multiple times, line 63 in Base.hcr: GHCziBase.zsze :: %forall a . GHCziBase.ZCTEq a -> a -> a -> GHCziBase.Bool = \ @ a (tpl::GHCziBase.ZCTEq a) -> %case tpl %of (tpl::GHCziBase.ZCTEq a) {GHCziBase.ZCDEq (tpl::a -> a -> GHCziBase.Bool) (tpl::a -> a -> GHCziBase.Bool) -> tpl}; Sincerely, Tobias
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: ghc 5.04.2 and seg fault, Simon Marlow |
|---|---|
| Next by Date: | Re: Invalid binding names in generated Core code, Tobias Gedell |
| Previous by Thread: | ghc 5.04.2 and seg fault, Isaac Jones |
| Next by Thread: | Re: Invalid binding names in generated Core code, Tobias Gedell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |