Incorrect error message ...
Thomas Binder
binder@iue.tuwien.ac.at
Tue Jan 19 04:24:00 GMT 1999
Hi everybody!
The following code sequence produces a very irritating error message with
all egcs/gcc versions I tried so far.
class TEST
{
public:
TEST ()
{}
virtual int notdefined ();
};
int main ()
{ TEST t1;
}
eg++ bug.cc -o bug
/tmp/ccgEGePl.o: In function `main':
/tmp/ccgEGePl.o(.text+0xb): undefined reference to `TEST::TEST(void)'
This is a very irritating message because the actual error was that function
`notdefined' has never been defined.
However, when the instantation of class TEST is changed to
TEST t1 ();
^^^
|
--------------------+
egcs is completely silent which I consider to be even worse.
regards,
Tom
--
"Computers are like air conditioners - they stop working properly when you open
Windows"
\\\|///
\\ ~ ~ //
( @ @ )
/------------------------oOOo-(_)-oOOo-----------------------------------------\
| Thomas Binder | |
| Institute for Microelectronics | phone: ++43/1/58801-36036 |
| Technical University Vienna | |
| Gusshausstrasse 27-29 / E360 | fax : ++43/1/58801-36099 |
| A-1040 Vienna | |
| A U S T R I A | email: binder@iue.tuwien.ac.at |
\---------------------------------Oooo.----------------------------------------/
.oooO ( )
( ) ) /
\ ( (_/
\_)
More information about the Gcc-bugs
mailing list