🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #759

Re: Forward declaration of classes

#759
From: Arthur Sombrito
Date: Wed, 07 Oct 1992 03:15
21 lines
1193 bytes
Manapragada Srinivas (srinivas@lgc.com) wrote:
: Is the following forward declaration valid?
: 
: 		class foo : public bar;
: 
: Where I am trying to declare that foo is a class which is publicly derived from 
: bar. It works like a charm in g++ 2.2.2, whereas SUN CC2.1 results in a syntax
: error. Which behaviour conforms to the standard? The ARM is silent on this
: issue. When I followed the grammar in the appendix the above type of syntax did
: not seem to be valid.
: 
: I would apreciate it very much if someone could shed some light on the above.
: 
: Thanks,
: Srinivas
: -- 
: Yonder, beyond the event horizon!

--

I would say that is an invalid syntax since it is not in the grammar.
Technical Details
Message-ID: <1992Oct7.031500.949@nuscc.nus.sg>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!spool.mu.edu!darwin.sura.net!jvnc.net!nuscc!arthur
References: <1992Oct1.214825.20001@lgc.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!spool.mu.edu!darwin.sura.net!jvnc.net!nuscc!arthur
From: arthur@solomon.technet.sg (Arthur Sombrito)
Subject: Re: Forward declaration of classes
Message-ID: <1992Oct7.031500.949@nuscc.nus.sg>
Sender: usenet@nuscc.nus.sg
Organization: National University of Singapore
X-Newsreader: TIN [version 1.1 PL6]
References: <1992Oct1.214825.20001@lgc.com>
Date: Wed, 7 Oct 1992 03:15:00 GMT
Lines: 23