Skip to content

fix(cgen): use unique overload for unknown expressions - #838

Merged
godofecht merged 4 commits into
mainfrom
fix/cgen-sole-overload-fallback-final
Sep 1, 2026
Merged

godofecht merged 4 commits into
mainfrom
fix/cgen-sole-overload-fallback-final

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

  • use the registered C symbol when a call has exactly one non-extern overload
  • cover indexed expressions that previously emitted an unmangled call
  • restore strict corpus compatibility for UI layout state and monomorphization flags

Validation

  • local strict corpus: 726/726 files pass
  • 43 focused backend tests pass
  • UI layout compiles with clang
  • all seven monomorphization port fixtures transpile strictly

Related: #832, #835

@godofecht

Copy link
Copy Markdown
Contributor Author

CI infrastructure blocker: Python tests, FLOW tier-2, self-host roundtrip, and platform jobs started but stopped reporting progress for over an hour. Filed a tracking issue and cancelled the stale runs. Local strict corpus and focused tests are green.

@godofecht
godofecht merged commit cb1b7f6 into main Sep 1, 2026
16 of 23 checks passed
godofecht added a commit that referenced this pull request Sep 7, 2026
Two completed Jules sessions whose work had not been pulled.

#733 adds a vectorization audit: seven cases asserting the generated C
carries the loop pragmas for shapes that should vectorize, and none for
a nested while that should not.

#823 adds a regression test for bundle symbol closure. Its session also
produced a change to `c_generator.py`, which is discarded here. That
issue says the source fix already landed in #838 and asks for no
competing mangling patch, and the reproduction confirms it: the bundle
emits, compiles and links on current main with no missing symbols and
no further change. The test guards that so it cannot quietly regress.

Both files had to be staged before pytest would see them:
`pytest_ignore_collect` in tests/conftest.py collects only git-tracked
tests so a local run matches CI.

  python3 -m pytest tests/unit    1731 passed, 2 skipped


Claude-Session: https://claude.ai/code/session_01H7f6FndutYaViuhto1UGA8

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant