From -4467586495090273663
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,47bacae5fe54406e,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1992-10-06 15:31:56 PST
Newsgroups: comp.std.c++
Path: 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

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.




