Instrumented self-calling multi-arity fn throws maximum call stack exceeded with optimizations advanced

Description

Multi-arity function cannot be instrumented and then run with optimizations advanced.

The self-call from arity-0 to another one is giving problems.
The self-call from another arity to arity-0 is also giving problems.

Repro:

Compile, run and output with advanced:

Environment

None

Status

Assignee

David Nolen

Reporter

Michiel Borkent

Labels

Approval

Accepted

Patch

Code and Test

Priority

Blocker
Configure