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]

egcs-970907: covariant return type + virtual inheritance = core


The attached program compiles & links fine, but dies with a bus error
at the line marked (*1*).  Somewhat surprisingly, the value of the
pointer printed just before that line is the same as in line (*2*).

There is no problem if class B inherits non-virtually from A.

This is on a Sparc Ultra, SunOS 5.5.1.

-Jay

a.cc


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