This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19816] New: C++ front-end produces a cast instead of just &a.b (empty base class)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Feb 2005 05:14:14 -0000
- Subject: [Bug c++/19816] New: C++ front-end produces a cast instead of just &a.b (empty base class)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
For the following code, the C++ front-end produces a case instead of doing &v.base which seems
wrong in my mind.
struct base { base(); };
struct vector : public base { };
int f() { vector v; }
This might be the cause of PR 19786 but it might not (I have not looked at the aliasing sets for that bug
yet).
--
Summary: C++ front-end produces a cast instead of just &a.b
(empty base class)
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19816