home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gcc / bug / 1954 < prev    next >
Encoding:
Text File  |  1992-07-23  |  989 b   |  38 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!eued50.tuwien.ac.at!gabara
  3. From: gabara@eued50.tuwien.ac.at (Andrej Gabara)
  4. Subject: bug relating assignments of member functions
  5. Message-ID: <9207201631.AA06520@eued50.tuwien.ac.at>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 20 Jul 1992 20:31:12 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 25
  12.  
  13. ---file "foo.c":-----------------------------------------------------
  14.  1    | class Point {
  15.  2    | public:
  16.  3      |    int getX() { return x; }
  17.  4     |    int getY() { return y; }
  18.  5    | private;
  19.  6      |    int x, y;
  20.  7    | }
  21.  8    | 
  22.  9    | main() {
  23. 10     |    int (Point::*gx)() = Point::getX;
  24. 11    | } 
  25.  
  26. ---output of g++--- (gcc 2.1)----------------------------------------
  27.  
  28. foo.c: In function `int  main ()':
  29. foo.c:10: parse error before `)'
  30.  
  31. ---------------------------------------------------------------------
  32.  
  33. foo.c compiles successfully with ATT C++ 2.1.
  34.  
  35. ---
  36. andrej gabara
  37.  
  38.