Skip to content

Rvalue::Ref lowering can drop runtime Index projections #120

Closed

Description

@niklebedenko

Rvalue::Ref lowering can lose runtime Index projections in places shaped like &(*ptr).field[i]. Therefore, the generated reference points at the containing field rather than the indexed element. Kernels using closure-captured or struct-contained arrays can silently read the wrong slot.

Repro / proposed fix: See PR

Activity

  1. added
    bug
    codegen
    IR-lowering
    on Jun 6, 2026
  2. added
    miscompile
    on Jun 10, 2026
  3. added a commit that references this issue on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    IR-loweringbugcodegenmiscompile

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions