[Bug c++/33470] Reassignment of a reference to a polymorphic class fails at runtime
photon at seznam dot cz
gcc-bugzilla@gcc.gnu.org
Tue Sep 18 12:01:00 GMT 2007
------- Comment #2 from photon at seznam dot cz 2007-09-18 12:01 -------
(In reply to comment #1)
> No, "B" is correct.
>
>
> A &Aref = Binst;
> Aref = Cinst;
>
> is the same as:
> Binst = (A)Cinst;
>
"Binst = (A)Cinst" would not compile (C is not derived from B).
--
photon at seznam dot cz changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33470
More information about the Gcc-bugs
mailing list