home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / g / bug / 1845 < prev    next >
Encoding:
Text File  |  1992-11-19  |  889 b   |  40 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: bug report
  5. Message-ID: <9211191723.AA16666@us-es.sel.de>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Thu, 19 Nov 1992 19:23:20 GMT
  10. Approved: bug-g++@prep.ai.mit.edu
  11. Lines: 27
  12.  
  13. Hello there,
  14.  
  15. Given the following code
  16.  
  17. class A
  18. {
  19. public :
  20.         A() ;
  21.         ~A() ;
  22. private :
  23. } ;
  24.  
  25. struct A1 {
  26.                 int A::*        p ;
  27. } ;
  28.  
  29. static A1       tbl[] ;
  30.  
  31. then I think the last line is illegal, and most of the compilers
  32. I have access to agree with me. GNU 2.2.2 and GNU 2.3.1 think the code
  33. is ok. I didn't bother checking with the ARM, this time.
  34.  
  35. Regards
  36.  
  37. David C Binderman     Dept US/ESI, Bau 60, SEL-Alcatel AG, Lorenz Strasse 10,
  38. D-7000 Stuttgart 40, Germany      dcb@us-es.sel.de   Tel: +49 711 821 3841
  39.  
  40.