Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Mike Bolotski
Wed, 15 Nov 1989 08:04
Can't find overloaded member function
Author: Mike Bolotski
Date: Wed, 15 Nov 1989 08:04
Date: Wed, 15 Nov 1989 08:04
37 lines
1604 bytes
1604 bytes
A helper Test function is not found by the public Test function in
delta.cc below:
Script started on Tue Nov 14 23:58:23 1989
coho{mikeb}71: g++ -v delta.cc
gcc version 1.36.1 (based on GCC 1.36)
/usr/local/lib/gnu/gcc-cpp -+ -v -undef -D__GNUC__ -D__GNUG__ -D__cplusplus -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 delta.cc /usr/tmp/cca18830.cpp
GNU CPP version 1.36
/usr/local/lib/gnu/gcc-cc1plus /usr/tmp/cca18830.cpp -quiet -dumpbase delta.cc -version -o /usr/tmp/cca18830.s
GNU C++ version 1.36.1 (based on GCC 1.36) (68k, MIT syntax) compiled by GNU C version 1.36.
default target switches: -m68020 -mc68020 -m68881 -mbitfield
delta.cc: In method int BitSet::Test (short int)const :
delta.cc:19: too many arguments for method `Test'
coho{mikeb}72: cat delta.cc
class BitSet {
protected:
unsigned long *set;
short numwords;
int Test(short w, short b);
public:
BitSet(short size=0);
~BitSet();
int Test(short pos) const;
};
inline int BitSet::Test(short p) const
{
return Test(1,2) != 0;
}
coho{mikeb}73: exit
exit
script done on Tue Nov 14 23:58:42 1989
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