Very basic bug

Torbjorn Granlund tg-this-will-bounce-but-I-am-subscribed-to-the-list-honest at swox.com
Thu Nov 30 13:49:39 CET 2006


Emmanuel Thomé <Emmanuel.Thome at normalesup.org> writes:

  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.
  
Current (as of today) fix is to go to http://swox.com/gmp/#STATUS and
download the "official" patch.

I had hoped to make 4.2.2 really quickly after this was discovered,
and therefore didn't publish this patch in a timely fashion.

-- 
Torbjörn


More information about the gmp-bugs mailing list