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 c++/33470] Reassignment of a reference to a polymorphic class fails at runtime



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


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