Skip to content

Generalize assignment compatibility for bounds-safe interfaces #810

Closed
@kkjeer

Description

@kkjeer

The current rules for assignment compatibility of expressions involving bounds-safe interfaces are missing two cases.

The first case is related to assignments involving nested pointers (see #797). GetCheckedCInteropType should be extended to handle dereferences and pointer arithmetic.

The second case is related to assignments of an unchecked pointer with an _Nt_array_ptr bounds-safe interface to an _Nt_array_ptr variable (see #806). The type checker should check the bounds-safe interface of the unchecked pointer in this case.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions