GMP 5.1.1 make check fail on Solaris 11

Niels Möller nisse at
Fri Feb 15 15:03:02 CET 2013

Marc Glisse <marc.glisse at> writes:

> And if your compiler is broken, if an error occurs, the program will
> be terminated instead of letting you catch the exception.

Will the program *always* be terminated in an reliable fashion?
Otherwise, I think it might be safer to have a configure check for
working exceptions, and do something like

        throw std::invalid_argument ("mpz_set_str");
	die ("mpz_set_str");

where die is some function which writes the message to stderr and then
calls abort or exit. Or encapsulate that into some functions
gmpxx_arg_error and gmpxx_length_error, to move the ifdefs out of


Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.

More information about the gmp-bugs mailing list