This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13005] [aliasing] Pointer wrongly adjusted for derived class containing virtual function
- From: "geoffk at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Nov 2003 12:04:48 -0000
- Subject: [Bug c++/13005] [aliasing] Pointer wrongly adjusted for derived class containing virtual function
- References: <20031111075141.13005.stephenma@telus.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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