Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!rutgers!att!watmath!watserv1!watcgl!fjhenigman From: fjhenigman@watcgl.waterloo.edu (Frank J. Henigman) Newsgroups: comp.sys.sgi Subject: 3.2 C compiler bug Message-ID: <1990May2.164735.27436@watcgl.waterloo.edu> Date: 2 May 90 16:47:35 GMT Distribution: comp Organization: Computer Graphics Laboratory, University of Waterloo, Ontario, Canada Lines: 21 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@watcgl.uwaterloo.ca Computer Graphics Lab fjhenigman@watcgl.waterloo.edu Frank J. Henigman University of Waterloo ...!watmath!watcgl!fjhenigman Waterloo, Ontario, Canada