|
Re: Bug in GHC 6.4.1 and 6.4.2: msg#00076lang.haskell.glasgow.bugs
Fritz Henglein wrote: According to a message from GHCi, version 6.4.1 (see below; bug also Thanks, good bug. The problem was: > index (minBound::Int16,maxBound) maxBound -1 ie. index for Int16 should have converted to Int *before* doing the subtraction. This is related to another problem (that I think we have a ticket for), namely that the type of index precludes having really large arrays: index :: Ix i => (i,i) -> i -> Int if the index must fit in an Int, then GHC can't cope with arrays with more than 2^31 elements (on a 32-bit machine), and in general Haskell doesn't allow arrays with more than 2^29 elements. Cheers, Simon
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Bug in users manual, 6.4.2, section on pattern guards, Simon Marlow |
|---|---|
| Next by Date: | [GHC] #833: Compiler error under Fedora Core 5 with hs-plugins, GHC |
| Previous by Thread: | Bug in GHC 6.4.1 and 6.4.2, Fritz Henglein |
| Next by Thread: | Bug in users manual, 6.4.2, section on pattern guards, Matthew Cox |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |