[GHC] #871: compiler bug concerning arrays

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Aug 21 04:09:11 EDT 2006


Hello GHC,

Monday, August 21, 2006, 11:42:18 AM, you wrote:

>  Prelude Array> listArray (0 , maxBound :: Int) (replicate (2 ^ 22) 0)

array with such bounds can't be build just because its number of
elements is larger than maxInt. it seems that array creation routines
should check this condition and then check that bytes required for
array are not greater than malloc/allocArray#/allocByteArray# can
accept as its parameters



-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com




More information about the Glasgow-haskell-bugs mailing list