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