Also show it in debug output
string text = "Member access:";
if(memacc.declaration)
text += format(" %%%d", get_label(*memacc.declaration));
- text += format(" .%s -> %s", memacc.member, format_type(memacc.type));
+ text += format(" .%s (%d) -> %s", memacc.member, memacc.index, format_type(memacc.type));
append(memacc, text);
append_subtree(*memacc.left);
}
if(i!=strct->members.variables.end())
{
declaration = i->second;
+ index = 0;
for(NodeList<Statement>::const_iterator j=strct->members.body.begin(); (j!=strct->members.body.end() && j->get()!=i->second); ++j)
++index;