This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/39571] Compiler crash with "GNU MP: Cannot reallocate memory"
- From: "aran at 100acres dot us" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Mar 2009 00:50:32 -0000
- Subject: [Bug fortran/39571] Compiler crash with "GNU MP: Cannot reallocate memory"
- References: <bug-39571-15541@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from aran at 100acres dot us 2009-03-29 00:50 -------
(In reply to comment #9)
>
> What happens when you compile the following:
>
> #include <stdio.h>
> #include <gmp.h>
> int main(void) {
> unsigned int u = 268435472u;
> mpz_t x;
> mpz_init(x);
> mpz_set_ui(x, 2);
> mpz_out_str (stdout, 10, x);
> printf(" %u\n", u);
> mpz_pow_ui (x, x, u);
> mpz_clear(x);
> return 0;
> }
>
rmme[0]$./a.out
2 268435472
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39571