Very basic bug

Álvaro Begué alvaro.begue at gmail.com
Wed Nov 29 12:47:00 CET 2006


Thank you very much!

Álvaro.


On 11/29/06, Emmanuel Thomé <Emmanuel.Thome at normalesup.org> wrote:
> 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