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: "photon at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2007 15:12:22 -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 #3 from photon at seznam dot cz 2007-09-18 15:12 -------
(In reply to comment #1)
> No, "B" is correct.
>
>
> A &Aref = Binst;
> Aref = Cinst;
>
> is the same as:
> Binst = (A)Cinst;
>
The compiler treats this case as Ainst = (A) Cinst.
--
photon at seznam dot cz changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33470