Article View: gnu.g++.bug
Article #1217ARM p179
From: dcb
Date: Thu, 19 Nov 1992 18:42
Date: Thu, 19 Nov 1992 18:42
31 lines
1180 bytes
1180 bytes
Hello there,
Given the following code
class A
{
public :
A() ;
~A() ;
private :
struct A1
{
int A::* p ;
} ;
static A1 tbl[] ;
} ;
then I get the following from gcc 2.2.2 and gcc 2.3.1 on a Sun4
k19.cc:11: parse error before `['
k19.cc:11: field `tbl' has incomplete type
My reading of Page 179 Section 9.4 says that this code is legal. Most of the
other compilers I have access to agree with me.
Regards
David C Binderman Dept US/ESI, Bau 60, SEL-Alcatel AG, Lorenz Strasse 10,
D-7000 Stuttgart 40, Germany dcb@us-es.sel.de Tel: +49 711 821 3841
130mph in the pouring rain, and you get flashed by a BMW for not going fast
enough. There is, of course, a Ferrari 512 on his tail flashing him.
Technical Details
Message-ID:
<9211191642.AA16492@us-es.sel.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!us-es.SEl.DE!dcbShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!us-es.SEl.DE!dcb From: dcb@us-es.SEl.DE Subject: ARM p179 Message-ID: <9211191642.AA16492@us-es.sel.de> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Thu, 19 Nov 1992 18:42:04 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 32