Fix preprocessor bug
The mod-file at http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=5310 crashes with:
Program: C:\Users\Pfeifer\Dropbox\Dynare Source\GitHub\dynare\matlab\dynare_m.exe
File: ExprNode.cc, Line 491
Expression: type != eExternalFunction && (lag == 0 || (type != eModelLocalVariable && type != eModFileLocalVariable))
The reason seems to be the call to an external function in initval:
F=fun_ss(par);
Something seems to prevent Dynare from recognizing that F is not known. The minimum working example is the following stripped-down mod-file:
var r;
parameters delta;
delta=par(1);
initval;
F=fun_ss(par);
r=F(1);
end;