0 ^ -1 == Inf ?? [g77 bug on Solaris 2.5 ??]

Martin Maechler Martin Maechler <maechler@stat.math.ethz.ch>
Thu, 14 Jan 1999 12:21:42 +0100


Just for the fun of it (actually in order to test some Fortran more
extensively), 
I've compiled and installed  g77, yesterday on our Solaris 2.5.1 machines.

After doing (in R's toplevel directory)
	make distclean
	./configure
now chooses  g77 (instead of Sun's f77 which was chosen before).
I now do
	make
	make check
	cd tests/Examples
and carefully compare  base-Ex.Rout  to an earlier version of base-Ex.Rout.
I've found the following problem

   Rg77> 0^-1
   [1] -Inf

instead of  {+}Inf  which was correctly returned before.

[[I also had  that "make compare" after g77's installation
  gave output of some differences, i.e., my g77 supposedly *does* have bugs.]]
--
Just to be sure:
Can some of you, particularly those for which 
	grep g77 config.cache
returns something, verify  that 

	0^-1 == Inf

and those who get something else report this (either to me or to R-devel)?

Thanks in advance.
Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._