It is possible to crash the parser when calling a function f from inside a function g, where f has been declared as a non-function, e.g. an integer variable. See the attached test cases.
Created attachment 59 [details] Minimal test case
Created attachment 60 [details] A larger test case
A fix has been checked into CVS.