DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
On this page
Diagnostic code index
The catalog has 200 allocated codes: 193 active, 3 reserved, 2 retired and 2 internal. Default severity is the catalog default; the emitted diagnostic is authoritative for the command and mode you ran. Codes are never reused.
Syntax and source text
Diagnosis guide: Syntax and source text.
| Code | Stable name and meaning | Default | Status |
|---|---|---|---|
| B0001 | invalid-character: invalid character |
error | active |
| B0002 | unterminated-string: unterminated string literal |
error | active |
| B0003 | invalid-utf8: source is not valid UTF-8 |
error | active |
| B0004 | malformed-number: malformed numeric literal |
error | active |
| B0005 | non-latin1-literal: character outside Latin-1 in a literal |
error | active |
| B0006 | malformed-identifier: malformed identifier |
error | active |
| B0101 | unexpected-token: unexpected token |
error | active |
| B0102 | missing-semicolon: missing semicolon |
error | active |
| B0103 | reserved-word-as-name: reserved word used as a name |
error | active |
| B0104 | end-name-mismatch: name after end does not match |
error | active |
| B0105 | foreign-operator: operator from another language |
error | active |
| B0106 | equals-for-assignment: = used for assignment |
error | active |
| B0107 | misspelt-elsif: misspelt elsif |
error | active |
| B0108 | missing-keyword: missing keyword or delimiter |
error | active |
| B0109 | mixed-logical-operators: mixed logical operators need parentheses |
error | active |
| B0110 | non-associative-operators: chained operators need parentheses |
error | active |
| B0111 | unexpected-end-of-file: unexpected end of file |
error | active |
| B0112 | positional-after-named: positional association after a named one |
error | active |
| B0201 | inconsistent-indentation: indentation that does not match a block |
error | active |
| B0401 | vibe-excluded: Python form that Vibe does not take |
error | active |
| B0501 | excluded-construct: construct not in Verada |
error | active |
| B0502 | extension-without-pragma: Verada's extension of Ada without pragma Extensions_Allowed (On) |
error | active |
| B0601 | unterminated-comment: unterminated block comment |
error | active |
| B0602 | invalid-escape: invalid escape sequence |
error | active |
| B0701 | unclear-precedence: operators that readers group differently need parentheses |
error | active |
| B0702 | mixed-field-visibility: some fields of a struct are pub and some are not |
error | active |
| B0703 | reference-mark-missing: argument of an out or inout parameter without & |
error | active |
| B0704 | reference-mark-needless: & on the argument of an in parameter |
error | active |
| B0705 | brackets-for-call: a call or conversion written with brackets |
error | active |
| B0706 | parentheses-for-index: indexing written with parentheses |
error | active |
| B0707 | pipeline-without-consumer: a pipeline that does not end in a consumer |
error | active |
| B0708 | lambda-outside-stage: an inline lambda outside a pipeline's stage or consumer |
error | active |
| B0709 | call-after-stage: an ordinary call after a pipeline's stage |
error | active |
| B0710 | several-placeholders: more than one _ in a piped call |
error | active |
| B0711 | malformed-code-string: APL text that does not read as APL |
error | active |
| B0712 | workbench-expansion-budget: APL text whose APL Workbench analysis exceeds its expansion budget |
error | active |
| B0801 | foreign-statement: statement form from another language |
error | active |
| B0901 | obsolescent-replacement-character: obsolescent replacement character |
error | active |
| B0902 | obsolescent-pragma: pragma replaced by an aspect |
warning | active |
| B0903 | obsolescent-library-name: obsolescent library unit name |
error | active |
| B0904 | obsolescent-clause: obsolescent representation clause or constraint |
error | active |
Names and declarations
Diagnosis guide: Names and declarations.
| Code | Stable name and meaning | Default | Status |
|---|---|---|---|
| B1001 | undefined-name: name not declared or not visible |
error | active |
| B1002 | duplicate-declaration: name declared twice |
error | active |
| B1003 | unknown-unit: library unit not found |
error | active |
| B1004 | wrong-kind-of-entity: name denotes the wrong kind of entity |
error | active |
| B1005 | missing-completion: declaration without its completion |
error | active |
| B1006 | circular-dependency: units depend on each other in a cycle |
error | active |
| B1007 | unit-file-mismatch: unit name does not match its file name |
warning | active |
| B1008 | not-a-variable: a variable is required |
error | active |
| B1009 | misplaced-attribute: attribute not allowed here |
error | active |
| B1010 | misplaced-return: return statement does not fit its subprogram |
error | active |
| B1011 | misplaced-exit: exit statement outside its loop |
error | active |
| B1012 | operator-not-visible: operator of a type is not visible |
error | active |
| B1013 | unknown-aspect: unknown aspect |
error | active |
| B1014 | misplaced-pragma: pragma not allowed here |
error | active |
| B1015 | nonconforming-body: body does not match its declaration |
error | active |
| B1016 | body-not-allowed: package body not allowed |
error | active |
| B1017 | overriding-mismatch: overriding indicator does not match |
error | active |
| B1018 | handler-for-check: handler names a predefined check exception |
error | active |
| B1019 | nested-subprogram-access: 'Access of a nested subprogram |
error | retired |
| B1020 | workbench-instance-budget: APL Workbench analysis beyond its generic-instantiation budget |
error | active |
| B1021 | instance-before-body: instance elaborated before its generic's body |
error | active |
| B1022 | main-profile: a main subprogram's profile |
error | active |
Types and constraints
Diagnosis guide: Types and constraints.
| Code | Stable name and meaning | Default | Status |
|---|---|---|---|
| B2001 | type-mismatch: expression has the wrong type |
error | active |
| B2002 | static-value-out-of-range: static expression is out of range or undefined |
error | active |
| B2003 | not-static: a static expression is required |
error | active |
| B2004 | not-callable: name cannot be called, indexed or converted |
error | active |
| B2005 | wrong-arguments: arguments do not match the parameters |
error | active |
| B2006 | unknown-component: record has no such component |
error | active |
| B2007 | unknown-attribute: unknown attribute |
error | active |
| B2008 | ambiguous-name: name or expression is ambiguous |
error | active |
| B2009 | no-operator: operator not defined for the type |
error | active |
| B2010 | invalid-aggregate: aggregate does not match its type |
error | active |
| B2011 | case-coverage: case choices do not cover the selector exactly once |
error | active |
| B2012 | invalid-conversion: conversion between unrelated types |
error | active |
| B2013 | indefinite-object: object of an unconstrained type without bounds |
error | active |
| B2014 | limited-copy: copy of a value of a limited type |
error | active |
| B2015 | conditional-old: 'Old in a part of a postcondition that might not be evaluated |
error | active |
| B2016 | partial-view-invariant: Type_Invariant on both views of a private type |
error | active |
| B2017 | enclave-type-not-limited: a type holding an enclave's pointers is not limited private |
error | active |
| B2018 | enclave-model-missing: an enclave type without a ghost Model or a Type_Invariant |
error | active |
| B2019 | enclave-pointer-visible: an access type or access result in an enclave's visible part |
error | active |
| B2020 | enclave-cell-component: an enclave's cell holds what a cell may not |
error | active |
| B2021 | enclave-state: an enclave's variable outside an Abstract_State |
error | active |
| B2022 | enclave-foreign: an enclave type crossing to foreign code, volatile or at an address |
error | active |
| B2023 | enclave-call-out-global: a call out of an enclave to a subprogram that reaches its state or objects |
error | active |
| B2024 | enclave-call-out-argument: a call out of an enclave given an enclave object other than as in |
error | active |
| B2025 | enclave-exceptional: Exceptional_Cases on a public operation of an enclave |
error | active |
| B2026 | enclave-old-argument: X'Old as the argument of a function over an enclave's cells |
error | active |
| B2027 | unchecked-conversion-sizes: an Unchecked_Conversion between types stored in different sizes |
error | active |
| B2028 | general-access-ownership: a general access value that could outlive, alias or free what it designates |
error | active |
| B2031 | record-layout: a record representation clause that places its components illegally |
error | active |
| B2032 | enumeration-codes: an enumeration representation clause whose codes are not one static, increasing code per literal |
error | active |
| B2030 | assertion-level: an assertion level declared or used inconsistently |
error | active |
| B2035 | exceptional-cases-widened: an overriding operation that may propagate an exception the operation it overrides does not list |
error | active |
| B2029 | side-effect-call-place: a function with side effects called other than as an assignment's or a declaration's value |
error | active |
Flow and effects
Diagnosis guide: Flow and effects.
| Code | Stable name and meaning | Default | Status |
|---|---|---|---|
| B3001 | uninitialised-read: variable might be read before it is assigned |
error | active |
| B3002 | out-parameter-unset: out parameter might not be assigned |
error | active |
| B3003 | global-missing: global not listed in the Global contract |
error | active |
| B3004 | global-mode: global used with another mode than its contract says |
error | active |
| B3005 | global-unused: the Global contract lists more than is used |
warning | active |
| B3006 | function-side-effect: function with a side effect |
error | active |
| B3007 | import-without-global: imported subprogram without a Global contract |
error | active |
| B3008 | dependency-missing: dependency not stated in Depends |
error | active |
| B3009 | dependency-unused: stated dependency does not occur |
warning | active |
| B3010 | aliased-parameters: actual parameters overlap |
error | active |
| B3011 | uninitialised-global: global might be read before it is assigned |
error | active |
| B3012 | initializes-mismatch: Initializes does not match what elaboration assigns |
error | active |
| B3013 | ghost-in-code: ghost entity used in code that is compiled |
error | active |
| B3014 | ghost-writes-state: ghost code modifies state that is not ghost |
error | active |
| B3015 | invalid-flow-item: not allowed in a flow contract |
error | active |
| B3016 | partly-initialised: object with relaxed initialisation might be read before it is initialised |
error | active |
| B3017 | hidden-state: hidden variable outside the package's state abstractions |
error | active |
| B3018 | unlisted-propagation: exception might propagate without being listed in Exceptional_Cases |
error | reserved |
| B3019 | data-race: variable shared between tasks outside a protected object |
error | active |
| B3020 | potentially-blocking: potentially blocking operation in a protected action |
error | active |
| B3021 | ceiling-violation: protected object's ceiling below its caller's priority |
error | active |
| B3022 | volatile-function-input: function reads an object something else may change |
error | active |
| B3023 | volatile-context: volatile object read inside an expression |
error | active |
| B3024 | constant-after-elaboration: a Constant_After_Elaboration variable changed after elaboration |
error | active |
| B3025 | unused-variable: variable never used, or assigned but never read |
warning | active |
| B3026 | ineffective-assignment: assignment whose value is never read |
warning | active |
| B3027 | no-effect: procedure that changes nothing its caller sees |
warning | active |
| B3028 | in-out-mode: in out parameter that could be in or out |
warning | active |
| B3029 | suspension-waiters: a suspension object more than one task may wait on |
error | active |
| B3030 | queue-length-exceeded: an entry more tasks may call than its Max_Queue_Length |
error | active |
Executable checks
Diagnosis guide: Executable checks.
| Code | Stable name and meaning | Default | Status |
|---|---|---|---|
| B4101 | overflow-check: overflow check might fail |
error | active |
| B4102 | range-check: range check might fail |
error | active |
| B4103 | index-check: index check might fail |
error | active |
| B4104 | division-check: division by zero check might fail |
error | active |
| B4105 | alias-check: actual parameters might overlap |
error | active |
| B4106 | length-check: length check might fail |
error | active |
| B4107 | discriminant-check: discriminant check might fail |
error | active |
| B4108 | predicate-check: predicate check might fail |
error | active |
| B4109 | null-check: null check might fail |
error | active |
| B4110 | tag-check: tag check might fail |
error | active |
Contracts and termination
Diagnosis guide: Contracts and termination.
| Code | Stable name and meaning | Default | Status |
|---|---|---|---|
| B5101 | precondition: precondition might fail at a call |
error | active |
| B5102 | postcondition: postcondition might fail |
error | active |
| B5103 | loop-invariant-init: loop invariant might fail on entry |
error | active |
| B5104 | loop-invariant-preservation: loop invariant might not be preserved |
error | active |
| B5105 | assertion: assertion might fail |
error | active |
| B5106 | contract-cases: contract cases might not be complete and disjoint |
error | active |
| B5107 | loop-variant: loop variant might not make progress |
error | active |
| B5108 | termination: function might not terminate |
error | active |
| B5109 | subprogram-variant: subprogram variant might not make progress |
error | active |
| B5110 | default-initial-condition: an initial condition might not hold |
error | active |
| B5111 | raise-reachable: raise might be reached |
error | active |
| B5112 | procedure-termination: procedure might not terminate |
error | active |
| B5113 | exceptional-case: exceptional case might fail |
error | active |
| B5114 | access-contract: subprogram contract does not imply its access type's |
error | reserved |
| B5115 | proof-budget: could not prove within the proof budget |
error | active |
| B5116 | frame-read: a cell outside the footprints might be read |
error | active |
| B5117 | frame-write: a cell outside the writable footprints might be written |
error | active |
| B5118 | footprint-grows: a footprint might take a cell that was neither its objects' nor new |
error | active |
| B5119 | footprints-overlap: two objects' footprints might share a cell |
error | active |
| B5120 | program-exit: the program might exit where it may not, or its exit condition might not hold |
error | active |
| B5121 | exit-case: a subprogram might end otherwise than its exit cases say |
error | active |
| B5122 | iteration-order: a container's iteration functions might not visit its elements in order |
error | active |
Ownership and finalization
Diagnosis guide: Ownership and finalization.
| Code | Stable name and meaning | Default | Status |
|---|---|---|---|
| B6001 | uninitialised-allocator: allocator without an initial value |
error | active |
| B6002 | use-after-move: use of a moved value |
error | active |
| B6003 | moved-at-return: parameter or global still moved at a return |
error | active |
| B6004 | move-from-observed: move out of an in parameter |
error | active |
| B6005 | memory-leak: memory might leak |
error | active |
| B6006 | invalid-finalizable: invalid Finalizable aspect |
error | active |
| B6007 | aliasing-old: 'Old of a value that owns access values |
error | active |
| B6008 | moved-in-loop: value still moved at the end of a loop iteration |
error | active |
| B6009 | borrowed-object-used: use of an object while it is borrowed |
error | active |
| B6010 | observed-object-changed: change to an object while it is observed |
error | active |
| B6011 | dangling-cell: use of an enclave's cell after it is freed |
error | active |
| B6012 | double-free: an enclave's cell freed twice |
error | active |
| B6013 | fuel-exhausted: a function over an enclave's cells recursed deeper than there are cells |
error | active |
Driver and session failures
Diagnosis guide: Driver and session failures.
| Code | Stable name and meaning | Default | Status |
|---|---|---|---|
| B7001 | not-yet-implemented: command not implemented yet |
error | retired |
| B7002 | unknown-diagnostic-code: unknown diagnostic code |
error | active |
| B7003 | invalid-command-line: invalid command line |
error | active |
| B7004 | cannot-read-file: cannot read a source file |
error | active |
| B7005 | not-yet-supported: construct not supported |
error | active |
| B7006 | invalid-project-file: invalid project file |
error | active |
| B7007 | solver-unavailable: the SMT solver could not be started |
error | active |
| B7008 | link-failed: the program could not be linked |
error | active |
| B7009 | cannot-write-file: cannot write an output file |
error | active |
| B7010 | poisoned-object: object left undefined by a failed input |
error | active |
| B7011 | session-object-value: a session object needs an initial value |
error | active |
| B7012 | foreign-compile-failed: a C source could not be compiled |
error | reserved |
| B7013 | foreign-fault: C code the program called faulted |
error | active |
| B7014 | no-main-subprogram: no main subprogram, or several |
error | active |
| B7015 | untranslatable: a construct the target syntax has no form for |
error | active |
Warnings and assumptions
Diagnosis guide: Warnings and assumptions.
| Code | Stable name and meaning | Default | Status |
|---|---|---|---|
| B8001 | unknown-pragma: unknown pragma ignored |
warning | active |
| B8002 | assumption: assumed, not proved |
warning | active |
| B8003 | precondition-unsatisfiable: precondition can never hold |
warning | active |
| B8004 | spark-mode-off: SPARK_Mode => Off has no effect |
warning | active |
| B8005 | never-changed: variable never changes after its initialisation |
warning | active |
| B8006 | others-handler-checks: when others does not handle failed checks |
warning | active |
| B8007 | contract-not-checked: contract not checked at run time |
warning | active |
| B8008 | certificate-rejected: a proof certificate was rejected |
warning | active |
| B8009 | check-justified: a check justified by review, not proved |
warning | active |
| B8010 | unreachable-code: code no path reaches |
warning | active |
| B8011 | fragile-proof: a check proved only with another random seed |
warning | active |
| B8012 | pending-checks: unproved checks kept at run time |
warning | active |
Internal errors
Diagnosis guide: Internal errors.
| Code | Stable name and meaning | Default | Status |
|---|---|---|---|
| B9001 | codegen-failed: the LLVM back end rejected the generated code |
error | internal |
| B9002 | summary-mismatch: a subprogram's proof summary does not match its VCs |
error | internal |