Repository navigation
Conversation
…1955) src/main.w, src/CodegenDispatch.w and src/compiler/Frontend.w use StringBuilder with no import. They compile only through the order-dependent leak #1955 describes (a bare `use compiler.Link` exposes Link's own `use std.string.StringBuilder` to the importer when Link's bodies are checked first). On win10 the leak does not happen for the backslash spelling of the path: > out\bootstrap\bin\with-stage1.exe check src\main.w error: 'StringBuilder' requires an explicit import (§18.1); add: use std.string.StringBuilder --> src\main.w:547:15 > out\bootstrap\bin\with-stage1.exe check W:/verify-2/src/main.w ok The explicit import is what §18.1 requires; the leak itself is #1955.
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src/main.w, src/CodegenDispatch.w and src/compiler/Frontend.w used StringBuilder without
use std.string.StringBuilder; it only resolved because an imported module's own import leaks through lookup_named_type_filtered's global fallback when that module's bodies are checked first — #1955, which makescheck src\main.wandcheck W:/…/src/main.wdisagree on win10. This is the §18.1-compliant spelling regardless of the #1955 fix. :dev and gate green on 30f89aa. Battery with the next batch.