Skip to content

v3: fix -autofree on literal-only programs - #28158

Closed
kestred wants to merge 2 commits into
vlang:masterfrom
kestred:main
Closed

v3: fix -autofree on literal-only programs#28158
kestred wants to merge 2 commits into
vlang:masterfrom
kestred:main

Conversation

@kestred

@kestred kestred commented Aug 22, 2026

Copy link
Copy Markdown

v -autofree fails to build any program whose body is only literal print calls, including examples/hello_world.v, with use of undeclared identifier 'MessageError__free'.
markused's trivial-literal fast path skipped the ownership destructor seeds while cgen still emitted the _result destructor that calls them, so this roots the IError implementers' destructors beside the IError sentinels that are already seeded unconditionally.

@kestred

kestred commented Aug 22, 2026

Copy link
Copy Markdown
Author

Superseded by #28159, which is based on the feature branch rather than my fork's main.

@kestred kestred closed this Aug 22, 2026
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