Very basic bug
Emmanuel Thomé
Emmanuel.Thome at normalesup.org
Wed Nov 29 12:12:10 CET 2006
On Tue, Nov 28, 2006 at 07:18:04PM -0500, Álvaro Begué wrote:
> GMP version: 4.2.1
>
>
> Sample program:
>
> #include <iostream>
> #include <gmpxx.h>
>
> int main(){
> mpz_class a=1,b=1,c=0;
> a=c+b*a;
> std::cout << a << std::endl; //Should print 1, but prints 0
> }
already reported and diagnosed ; will be fixed in the upcoming gmp
release, torbjorn said.
http://gmplib.org/list-archives/gmp-bugs/2006-October/000578.html
current fix is to modify gmpxx.h yourself.
E.
More information about the gmp-bugs
mailing list