This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/20228] [4.1 Regressions] Cannot link two valid C++ TU together
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Feb 2005 15:50:29 -0000
- Subject: [Bug target/20228] [4.1 Regressions] Cannot link two valid C++ TU together
- References: <20050227043019.20228.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-27 15:50 -------
Ignore the sources in comment #0, I got the definition wrong.
The following is the way libjava produces the code (now I don't know if this is valid or not):
---- source 1 -----
struct a
{
virtual void g();
virtual void f();
};
void a::f(){}
int main() { a b; b.f(); b.g(); }
---- cut -----
struct a
{
virtual void g();
virtual void f(){}
};
void a::g() {}
----- cut ------
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20228