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 tree-optimization/21407] [4.1 Regression] wrong code with upcast in C++


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


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