This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
funny syntactical error message
- To: gcc at gcc dot gnu dot org
- Subject: funny syntactical error message
- From: Ulrich Lauther <ulrich dot lauther at mchp dot siemens dot de>
- Date: Wed, 8 Mar 2000 12:35:31 +0100 (MET)
- Reply-To: Ulrich dot Lauther at mchp dot siemens dot de
Compilation of
class foo {
public:
int fudge[40];
int bar [40];
inline int access(int i) {
return bar(i);
}
};
gives
test.C:7: `(this + 160)' cannot be used as a function
if fudge is ommitted, you get
test.C:7: `this' cannot be used as a function
Why not "bar cannot be used as a function?"
(this is 2.95.1)
--
-lauther
----------------------------------------------------------------------------
Ulrich Lauther ph: +49 89 636 48834 fx: ... 636 42284
Siemens ZT SE 4 Internet: Ulrich.Lauther@mchp.siemens.de