bug in cpp in SV/363 r3.2 and older
David F. Carlson
dave at micropen
Wed Aug 9 04:39:37 AEST 1989
For the following program:
#include <stdio.h>
#include <nan.h>
float g = 1.0;
main()
{
fprintf(stderr,"I'm OK = %d.\n", IsNANorINF(g));
}
Firstly, required define _IEEE is missing from cpp(1).
Secondly, putting a #define _IEEE before the include of <nan.h>
above will cause cpp to barf on the next line of the file nan.h
after the #if _IEEE. However, -D_IEEE on the command line will
cause the file to parse and compile and execute correctly.
This is true under ESIX 3.2 and Microport 3.0e.
--
David F. Carlson, Micropen, Inc.
micropen!dave at ee.rochester.edu
"The faster I go, the behinder I get." --Lewis Carroll
More information about the Comp.bugs.sys5
mailing list