[Bug c++/13005] [aliasing] Pointer wrongly adjusted for derived class containing virtual function

geoffk at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Nov 16 12:04:00 GMT 2003


------- Additional Comments From geoffk at gcc dot gnu dot org  2003-11-16 12:04 -------
I believe this program is OK.  [expr.cast] says:
- a pointer to an object of non-virtual base class type ... may be explicitly converted to a pointer... 
of a derived class type...


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-16 12:04:48
               date|                            |


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



More information about the Gcc-bugs mailing list