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++/19816] New: C++ front-end produces a cast instead of just &a.b (empty base class)


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


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