Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] purpose of EvalID?

Hello,

I am trying to fix a bug involving dependent expressions [1],
but I do not fully understand the CPPEvaluation class hierarchy.

In particular, I am wondering what is the purpose of EvalID? It
seems to be created as the evaluation of a CPPASTIdExpression,
but since an id expression is an expression that names something,
how is this different from an EvalBinding for the binding that
is being named?

In the case I am investigating, an EvalID is being created for
an id expression that names a template function. The arguments
to the function are dependent, so the binding being named is
a CPPDeferredFunction. As a result, EvalID.create() creates an
EvalID rather than an EvalBinding. Later, when the enclosing
template is instantiated, EvalID.instantiate() does nothing,
leaving the evaluation dependent when it shouldn't be any more.

How should this be handled?

Thanks,
Nate

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=395243

 		 	   		  

Back to the top