home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / g / bug / 1844 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.1 KB  |  45 lines

  1. Newsgroups: gnu.g++.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!us-es.SEl.DE!dcb
  3. From: dcb@us-es.SEl.DE
  4. Subject: ARM p179
  5. Message-ID: <9211191642.AA16492@us-es.sel.de>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Thu, 19 Nov 1992 18:42:04 GMT
  10. Approved: bug-g++@prep.ai.mit.edu
  11. Lines: 32
  12.  
  13. Hello there,
  14.  
  15. Given the following code
  16.  
  17. class A 
  18. {
  19. public :
  20.         A() ;
  21.         ~A() ;
  22. private :
  23.         struct A1
  24.         {
  25.                 int A::*        p ;
  26.         } ;
  27.         static A1       tbl[] ;
  28. } ;
  29.  
  30. then I get the following from gcc 2.2.2 and gcc 2.3.1 on a Sun4
  31.  
  32. k19.cc:11: parse error before `['
  33. k19.cc:11: field `tbl' has incomplete type
  34.  
  35. My reading of Page 179 Section 9.4 says that this code is legal. Most of the
  36. other compilers I have access to agree with me.
  37.  
  38. Regards
  39.  
  40. David C Binderman     Dept US/ESI, Bau 60, SEL-Alcatel AG, Lorenz Strasse 10,
  41. D-7000 Stuttgart 40, Germany      dcb@us-es.sel.de   Tel: +49 711 821 3841
  42. 130mph in the pouring rain, and you get flashed by a BMW for not going fast
  43. enough. There is, of course, a Ferrari 512 on his tail flashing him.
  44.  
  45.