This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
glibc or egcs C++ bug ?
- To: libc-hacker@cygnus.com
- Subject: glibc or egcs C++ bug ?
- From: Thorsten Kukuk <kukuk@suse.de>
- Date: Fri, 5 Feb 1999 19:59:42 +0100
Hello,
I have got a bug report, where I don't know if it is a glibc or
egcs bug.
If I compile the appended example with egcs 1.1.1 and glibc 2.x,
I got:
kukuk@allen:~/tmp > g++ test.cc test2.cc
/tmp/ccvijqsR.o: warning: multiple common of `bla type_info node'
/tmp/ccfPOxJN.o: warning: previous common is here
kukuk@allen:~/tmp > g++ test3.cc
kukuk@allen:~/tmp >
test3.cc is test.cc and test2.cc in one file.
What the original author has tested:
egcs 1.1b and glibc: should work
egcs 1.1.1 and glibc: doesn't work
egcs 1.1.1 and libc5: should work
Does anybody know where the bug is ?
Thorsten
-- test.h --
#include <iostream.h>
class bla {
public:
virtual void test (void) { ; }
};
class blub : bla {
public:
virtual void test (void);
};
-- test.cc --
#include "test.h"
int
main (void)
{
blub b;
b.test ();
}
-- test2.cc --
#include "test.h"
void blub::test(void)
{
cerr << "blub" << endl;
}
-- test3.cc --
#include "test.h"
int
main (void)
{
blub b;
b.test ();
}
void blub::test(void)
{
cerr << "blub" << endl;
}
--
Thorsten Kukuk kukuk@suse.de http://home.pages.de/~kukuk/
Linux is like a Vorlon. It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.