Bug in dynare++ 4.2.1

dynare++ cannot compute logs correctly. If the following is inserted in the 'model' section of my program:
x = log(2);
dynare++ thinks log(2) is a name and returns the error:
Caught Dynare exception: Parse error at BKKEZ_labor.mod, line 211, column 84: Unknown name <log(2)>
Couldn't parse integer ', ignored
However, the following code does run successfully:
x = log(1+1);
x = log(2);
dynare++ thinks log(2) is a name and returns the error:
Caught Dynare exception: Parse error at BKKEZ_labor.mod, line 211, column 84: Unknown name <log(2)>
Couldn't parse integer ', ignored
However, the following code does run successfully:
x = log(1+1);