home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!eued50.tuwien.ac.at!gabara
- From: gabara@eued50.tuwien.ac.at (Andrej Gabara)
- Subject: bug relating assignments of member functions
- Message-ID: <9207201631.AA06520@eued50.tuwien.ac.at>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Mon, 20 Jul 1992 20:31:12 GMT
- Approved: bug-gcc@prep.ai.mit.edu
- Lines: 25
-
- ---file "foo.c":-----------------------------------------------------
- 1 | class Point {
- 2 | public:
- 3 | int getX() { return x; }
- 4 | int getY() { return y; }
- 5 | private;
- 6 | int x, y;
- 7 | }
- 8 |
- 9 | main() {
- 10 | int (Point::*gx)() = Point::getX;
- 11 | }
-
- ---output of g++--- (gcc 2.1)----------------------------------------
-
- foo.c: In function `int main ()':
- foo.c:10: parse error before `)'
-
- ---------------------------------------------------------------------
-
- foo.c compiles successfully with ATT C++ 2.1.
-
- ---
- andrej gabara
-
-