Skip to content

stage1 built from main by the seed rejects src/main.w:2991 (move actual_options.output_path then actual_options.source_path: use of moved value) #1634

Closed

Description

@ehartford

Observed on origin/main d274c64 in a pristine worktree with the seed at ~/with/src/main (with nightly-20260922-local-1-8c859a7d0559), with build :dev green, then:

./out/bootstrap/bin/with-stage1 check src/main.w
error: use of moved value
 --> src/main.w:2991:58
2991 |             obj_path = link_stage_output_path_for_source(actual_options.source_path) ++ ".o"
error: use of moved value
 --> src/main.w:2992:47

The installed compiler (same version string) says ok for the same file. So the tree's own move checker, compiled by the seed, treats var obj_path = move actual_options.output_path (src/main.w:2989) as moving the whole actual_options, and every later read of a sibling field as a use after move — while the seed does not. Either the tree's checker regressed (D32 field moves: move o.a should vacate one field) or the seed miscompiles it. Stage2 of a full with build compiles src/main.w with stage1, so this should be red on the next battery; filing so it is not mistaken for a D64 regression (found while verifying the D64 branch).

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions