Article View: gnu.gcc.bug
Article #169bug relating assignments of member functions
From: Andrej Gabara
Date: Mon, 20 Jul 1992 20:31
Date: Mon, 20 Jul 1992 20:31
24 lines
1024 bytes
1024 bytes
---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
Technical Details
Message-ID:
<9207201631.AA06520@eued50.tuwien.ac.at>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!eued50.tuwien.ac.at!gabaraShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!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