------- Additional Comments From dberlin at gcc dot gnu dot org 2005-05-10 15:09 ------- And this would still work with the code i've written, because it's at offset 0 (which is why it's valid in C).
It would have worked before the fix, too. It's only when you cast back *down* to the derived class (you'll note andrew's example isn't really an upcast, because he's dynamic casting back down to a derived class) that we were running into trouble. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21407