This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/39571] Compiler crash with "GNU MP: Cannot reallocate memory"



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]