DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
On this page

B0006: malformed identifier

Catalog status: active. Default severity: error. Stable name: malformed-identifier. Family: Syntax and source text.

An Ada identifier starts with a letter, and an underscore may only separate two letters or digits (RM 2.3): no leading or trailing underscore and no __.

Example (Vada)

   Item__Count : Integer := 0;
   Last_ : Integer := 0;

What to do

Use single underscores between words: Item_Count, Last.

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.