Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!YAHI.STANFORD.EDU!tiemann From: tiemann@YAHI.STANFORD.EDU (Michael Tiemann) Newsgroups: gnu.g++.bug Subject: Semicolon can be replaced by dummy function! Message-ID: <8904261535.AA01996@yahi.stanford.edu> Date: 26 Apr 89 15:35:51 GMT References: <4929@eva.slu.se> Sender: daemon@tut.cis.ohio-state.edu Reply-To: tiemann@lurch.stanford.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 29 class Test { protected: double xx, yy, zz; public: Test(doubel, double, double); } // Semicolon missing! dummy(){} // This seems to replace the missing semicolon after the class! inline Test::Test(double x, doubel y, double z) { xx=x; yy=y; zz=z; } You get what you deserve when you say dummy(){} instead of int dummy(){} If you specify the return type, the compiler will issue an error message. Otherwise it needs infinite lookahead to determine whether or not you made an erroneous declaration. Michael