This is the mail archive of the gcc@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]

gcc Dump error or g++ IR error?


Look at this sample code:
class aa{
        public:
                void haha();
};
void aa::haha()
{
}
class bb:public aa
{

};
class cc:public bb
{
};
class dd{
public:
cc cc00;
};
void lwstestmain(void)
{
dd *pp;
pp=new dd;
pp->cc00.haha();//here,line 23
}

when i dump this code.in line 23.the IR is a call to haha,
the argv[0] is a nop_expr rather than the expression of
pp->cc00.(of course,the first arg must be "this" pointer)

when i traverse this nop_expr,i can not get "cc00" .(i can
get pointer to "aa",pointer to "cc",var_decl "pp")

is this a bug in G++'s IR or gcc's Dump code?






_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


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