This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
egcs-970907: covariant return type + virtual inheritance = core
- To: egcs-bugs at cygnus dot com
- Subject: egcs-970907: covariant return type + virtual inheritance = core
- From: Jay Sachs <sachs at bull dot cs dot williams dot edu>
- Date: 08 Sep 1997 18:35:45 -0400
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