This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33470] Reassignment of a reference to a polymorphic class fails at runtime
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2007 18:48:57 -0000
- Subject: [Bug c++/33470] Reassignment of a reference to a polymorphic class fails at runtime
- References: <bug-33470-15110@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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