This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/20228] [4.1 Regressions] Cannot link two valid C++ TU together


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]