DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
On this page

B7010: object left undefined by a failed input

Catalog status: active. Default severity: error. Stable name: poisoned-object. Family: Driver and session failures.

In the REPL, an input whose code failed a run-time check (or raised Storage_Error) stopped part way. The session objects it may have written, directly or through the subprograms it called, may hold values that no complete run produced, so the REPL does not let later inputs use them.

Example (Vada)

verada> S : Small := 10;
verada> S := S + 1;          --  the range check fails
verada> S
error[B7010]: `S` may have been left undefined by an input that failed

Example (Varc)

verada> var s: Small = 10;
verada> s += 1;            // the range check fails
verada> s
error[B7010]: `s` may have been left undefined by an input that failed

What to do (Vada)

Declare the object again (S : Small := 1;): the new declaration hides the poisoned one, and inputs after it use the new object.

What to do (Varc)

Declare the object again (var s: Small = 1;): the new declaration hides the poisoned one, and inputs after it use the new object.

Regression source and further reading

Complete regression example: source, command arguments and expected results. The fixture deliberately reproduces this diagnostic.

See driver and session failures, the code index, and diagnostic interpretation for modes, replay, fix-its and JSON.