🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1908

Semicolon can be replaced by dummy function!

#1908
From: Michael Tiemann
Date: Wed, 26 Apr 1989 15:35
29 lines
1085 bytes
   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
Technical Details
Message-ID: <8904261535.AA01996@yahi.stanford.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!YAHI.STANFORD.EDU!tiemann
References: <4929@eva.slu.se>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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