[Patch] Another fix for GMP 4.2.1 with Sun Studio 11

Matthias Koeppe mkoeppe at mail.math.uni-magdeburg.de
Sat Aug 12 15:33:56 CEST 2006


Albert Chin <gmp-bugs at mlists.thewrittenword.com> writes:

> On Fri, Jul 21, 2006 at 05:38:18PM +0200, Matthias Koeppe wrote:
>> I am sending another patch for GMP 4.2.1 with --enable-cxx, using the
>> Sun Studio 11 compilers.  [...]
> Do you have a fix for the following error:
> CC -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../tests    -xO2 -xtarget=ultra2 -xarch=v8plusa -c -o t-binary.o t-binary.cc
> "../../gmpxx.h", line 3573: Error: Ambiguous partial specialization for __gmp_expr<__mpz_struct[1], __gmp_binary_expr<__gmp_expr<__mpz_struct[1], __mpz_struct[1]>, __gmp_expr<__mpz_struct[1], __mpz_struct[1]>, __gmp_binary_plus>>, __gmp_expr and __gmp_expr.
> "../../gmpxx.h", line 3573: Error: Too many arguments in cast to __gmp_expr<__mpz_struct[1], __gmp_binary_expr<__gmp_expr<__mpz_struct[1], __mpz_struct[1]>, __gmp_expr<__mpz_struct[1], __mpz_struct[1]>, __gmp_binary_plus>>.

I don't have a fix for these (and similar) errors, so I had to give up
using the Sun Studio 11 compiler with the C++ part of GMP.

-- 
Matthias Köppe -- http://www.math.uni-magdeburg.de/~mkoeppe



More information about the gmp-bugs mailing list