Path: utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!cica!iuvax!watmath!watcgl!gbaciu From: gbaciu@watcgl.waterloo.edu (George Baciu [CGL]) Newsgroups: comp.sys.sgi Subject: iris C and C++ problem Keywords: iris, C, C++ Message-ID: <11651@watcgl.waterloo.edu> Date: 27 Sep 89 13:42:05 GMT Distribution: comp Organization: U of Waterloo, Ontario Lines: 30 A check for the context of keywords in the IRIS C compiler does not allow sometimes C++ code to be compiled. The environment is 4D/120GTX running 3.1G. Is there a fix to this? Or are we using a faulty C++ frontend? Here's a sample C program that generates the syntax error: Script started on Thu Sep 21 17:26:03 1989 % % cat foo.c typedef (*bar)(int); foo (bar,int); main() {} % cc foo.c ccom: Error: foo.c, line 2: syntax error foo (bar,int); -----------^ % exit % script done on Thu Sep 21 17:26:15 1989 --- George Baciu --- ----------------------------------------------------------------- | GBaciu@watcgl.Waterloo.edu GBaciu@watcgl.UWaterloo.CA | | * Computer Graphics Lab * | | University of Waterloo - Waterloo, Ontario, Canada - N2L 3B5 | -----------------------------------------------------------------