I am not sure if this is really a bug or more of a "don't do that" moment, but writing a function that references itself creates a Stack overflow.
(I did this recently by mistake, code verified with the script below.)
Stack overflow during ASH script: (001-ashtest.ash, line 1)
(I did this recently by mistake, code verified with the script below.)
Stack overflow during ASH script: (001-ashtest.ash, line 1)
Code:
void SayHi() { SayHi(); }
void main() {
print("hello world");
SayHi();
}