Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Andrej Gabara
Mon, 20 Jul 1992 20:31
bug relating assignments of member functions
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads