# ProgramDiagnostic

`import { ProgramDiagnostic } from "destack:compute";`

Diagnostic emitted while compiling a compute program.

```ds title="ProgramDiagnostic"
export struct ProgramDiagnostic {
    severity: ProgramDiagnosticSeverity;
    message: string;
    location: ProgramLocation;
}
```

[language/library/src/compute/program.ds:99:108](https://github.com/destack-sh/destack/blob/main/language/library/src/compute/program.ds#L99-L108)

## Members

### `severity: ProgramDiagnosticSeverity`

Diagnostic severity.

### `message: string`

Human-readable diagnostic message.

### `location: ProgramLocation`

Source location when available.
