[Prev][Next][Index]
A bug in the table bif_node.def
- To: sage-bugs@cica.indiana.edu
- Subject: A bug in the table bif_node.def
- Date: Wed, 15 Feb 1995 14:00:21 +0100
- From: Francois Bodin <Francois.Bodin@irisa.fr>
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