This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc Dump error or g++ IR error?
- To: gcc at gcc dot gnu dot org
- Subject: gcc Dump error or g++ IR error?
- From: "Liu WS" <louispp at hotmail dot com>
- Date: Tue, 28 Nov 2000 09:33:12 -0000
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