V9005ΒΆ
- Code
V9005
- Message
Variable table index out of bounds
The VM tried to access a variable table slot that does not exist, or followed a reference whose value is not the location of a variable. This is an internal error: the compiler allocated too few variable slots, or let a program store a value that is not a reference in a reference.
A program compiled with --allow-ref-type-punning can reach this error
without a compiler bug. Type punning lets a reference reinterpret the storage
of another reference, so a value written through the first is followed by the
second as a variable location. Check what the program writes through a punned
reference before reporting the error.
This error should not occur during normal operation. It indicates a bug in the IronPLC compiler or VM.
Report this as a bug at https://github.com/ironplc/ironplc/issues with the
.iplc file and the source program that produced it.
Think IronPLC is wrong about this?
If you believe this diagnostic is incorrect, open an issue on GitHub with a small sample that demonstrates the problem.