Skip to content

Report const index out-of-bound condition earlier #3170

Closed
@graydon

Description

@graydon

Currently if you try indexing into a const vector, in a const expr, we report the bounds-overrun late in compilation -- during translation. We should notice it earlier, in the const evaluation pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.P-lowLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions