DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
On this page

B0103: reserved word used as a name

Catalog status: active. Default severity: error. Stable name: reserved-word-as-name. Family: Syntax and source text.

Ada's reserved words (range, type, access, delta, ...) cannot be used as names, even where the meaning would be clear. Verada reserves all Ada 2022 reserved words, including those of features it excludes, so programs stay legal Ada.

Example (Vada)

   procedure Clip (Range : Integer);

What to do

Choose another name, for example Limit or Value_Range.

Regression source and further reading

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

See syntax and source text, the code index, and diagnostic interpretation for modes, replay, fix-its and JSON.