3.2 C compiler bug
Frank J. Henigman
fjhenigman at watcgl.waterloo.edu
Thu May 3 02:47:35 AEST 1990
The following program prints zero but it should print 1.
If you modify the program so that foo() does not return a struct it works
as expected.
struct crud { long x; } w;
struct crud foo( float f, long k )
{
printf( "%ld\n", k );
return w;
}
main()
{
foo( 0.0, 1L );
}
--
fjhenigman at watcgl.uwaterloo.ca Computer Graphics Lab
fjhenigman at watcgl.waterloo.edu Frank J. Henigman University of Waterloo
...!watmath!watcgl!fjhenigman Waterloo, Ontario, Canada
More information about the Comp.sys.sgi
mailing list