[Prev][Next][Index]

A bug in the table bif_node.def




Hi,

It seems that there is a wrong entry in the table bif_node.def:


DEFNODECODE(TYPE_OP,"nodetext",'e',1,LLNODE,		'_','_','_','_','_')

Should be

DEFNODECODE(TYPE_OP,"nodetext",'e',0,LLNODE,		'_','_','_','_','_')
                                   ^ there is no child expressions 

This may introduce a problem when using the method  newExpr(TYPE_OP,type.thetype)
in :

inline SgVarDeclStmt::SgVarDeclStmt(SgExpression &varRefValList, SgType &type):SgDeclarationStatement(VAR_DECL)
{
  if ( CurrentProject->Fortranlanguage ())
    {
      BIF_LL1(thebif) = varRefValList.thellnd;
      BIF_LL2(thebif) = newExpr(TYPE_OP,type.thetype);
      BIF_LL3(thebif) = LLNULL;
    }
  else /* C or C++ */
    {
      BIF_LL1(thebif) = varRefValList.thellnd;
      NODE_TYPE(BIF_LL1(thebif)) = type.thetype;
    }
}
                                     

Francois