Robert P. Ewing wrote:
I've been moving an old program over to GPC, and ran across the following. Apparently the '**' operator works fine on variables, but it crashes if I put a hard-coded numerical value in for the base. The old y^x = exp(y ln x) workaround from Turbo seems to work fine. I don't know whether this is a new or a known bug.
This seems to be a bug in how the arguments to some operations on LongReal's (aka Extended) are passed, and real constants are assumed Extended by default. I added it to the bug list. Thanks for the report.
I note that if I write 'real(10.0)' rather than '10.0', the program runs just fine...
This would indeed be a useful workaround for now. (But AFAIR, TP doesn't like this -- if that's of any concern to you...)
Frank
-- Frank Heckenbach, frank@fjf.gnu.de http://fjf.gnu.de/ PGP and GPG keys: http://fjf.gnu.de/plan