[Bug c++/33470] Reassignment of a reference to a polymorphic class fails at runtime

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 18 18:49:00 GMT 2007



------- Comment #4 from bangerth at dealii dot org  2007-09-18 18:48 -------
To be quite clear: you can re-associate references (unlike pointers), so
when you do Ainst = Cinst, you copy the A-part of Cinst, but you still have
a 'B' whose 'A' component has just been overwritten.

W.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33470



More information about the Gcc-bugs mailing list