This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.1a: new don't not throw bad_alloc
>>>>> Ryszard Kabatek writes:
> I tested the behaviour of 'new' again.
> If the size of the array is smaller then INT_MAX-11 (?),
> 'new' does throw bad_alloc.
> If it's INT_MAX-10 or more 'new' does not throw.
Check the glibc bug database at
http://www-gnats.gnu.org:8080/cgi-bin/wwwgnats.pl for PR libc/723.
This is a 'feature' of glibc.
Andreas
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de