home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.g++.bug
- Path: 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
-
- 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.
-
-