Thread View: gnu.g++.bug
1 messages
1 total messages
Started by rfg
Fri, 05 Jan 1990 18:17
g++ 1.36.1 bug+fix 01059001 - static operators get errors
Author: rfg
Date: Fri, 05 Jan 1990 18:17
Date: Fri, 05 Jan 1990 18:17
32 lines
1292 bytes
1292 bytes
// In g++ 1.36.1, the following example gets errors like
// "wrong number of parameters to `operator XXX'". This appears to be
// happening for any operator which is declared static.
class mine {
public:
static int operator == (mine&);
static int operator [] (mine&);
static int operator ! ();
};
(Michael - please confirm the following fix.)
*** cplus-decl2.c- Sat Dec 30 11:41:33 1989
--- cplus-decl2.c Fri Jan 5 09:54:43 1990
***************
*** 921,926 ****
/* Now we know the number of parameters,
so build the real operator fnname. */
! name = build_operator_fnname (declarator, TYPE_ARG_TYPES (type),
! is_decl > 1);
}
else
--- 921,925 ----
/* Now we know the number of parameters,
so build the real operator fnname. */
! name = build_operator_fnname (declarator, TYPE_ARG_TYPES (type), 0);
}
else
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