Article View: gnu.g++.bug
Article #586Can't find overloaded member function
From: 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
Technical Details
Message-ID:
<264*mikeb@ee.ubc.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!ee.ubc.ca!mikebShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!ee.ubc.ca!mikeb From: mikeb@ee.ubc.ca (Mike Bolotski) Newsgroups: gnu.g++.bug Subject: Can't find overloaded member function Message-ID: <264*mikeb@ee.ubc.ca> Date: 15 Nov 89 08:04:00 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 37