C++ t-expr.cc won't compile with Sun CC
petecascio@adelphia.net
petecascio at adelphia.net
Sat Aug 13 05:22:57 CEST 2005
Has anyone made a patch that will allow tests/cxx/t-expr.cc to compile with Sun CC 5.4?
The compiler says there's a missing operator= definition for the combination of those two types:
CC -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../tests -xtarget=native -xarch=v8plus -xO4 -c -o t-expr.o `test -f t-expr.cc || echo './'`t-expr.cc
CC.bin: Forte Developer 7 C++ 5.4 Patch 111715-08 2003/06/08
ccfe: Forte Developer 7 C++ 5.4 Patch 111715-08 2003/06/08
"t-expr.cc", line 104: Error: Cannot assign __gmp_expr<__gmpz_value, __gmp_unary_expr<__gmp_expr<__gmpz_value, __gmpz_value>, __gmp_unary_minus>> to __gmp_expr<__gmpz_value, __gmpz_value> without "__gmp_expr<__gmpz_value, __gmpz_value>::operator=(const __gmp_expr<__gmpz_value, __gmpz_value>&)";.
"t-expr.cc", line 110: Error: Cannot assign __gmp_expr<__gmpz_value, __gmp_binary_expr<__gmp_expr<__gmpz_value, __gmpz_value>, __gmp_expr<__gmpz_value, __gmpz_value>, __gmp_binary_plus>> to __gmp_expr<__gmpz_value, __gmpz_value> without "__gmp_expr<__gmpz_value, __gmpz_value>::operator=(const __gmp_expr<__gmpz_value, __gmpz_value>&)";.
I've already applied the other Solaris configure options:
./configure --enable-cxx ABI=32 CFLAGS="-xtarget=native -xarch=v8plus -xO4"
Thanks in advance,
Pete
More information about the gmp-bugs
mailing list