Skip to content

§18.3: calling a non-pub std function from a program says "undefined variable" instead of naming the visibility rule #2958

Closed

Description

@ehartford

From the D100 probe (2026-11-02 audit). use std.fs then calling a non-pub function of lib/std/fs.w gives error: undefined variable. §18.3: access from another package to a declaration that is not pub "is a compile error"; the message should say the name exists, is not pub, and which module declares it (the compiler knows all three). Every other D100 probe passed: non-pub across a package's modules, an internal/ module inside the package, a loose file with its sibling module, use std.internal.str_abi refused with the §18.3 message.

Activity

  1. added
    bug
    error-messages
    on Nov 2, 2026
  2. added a commit that references this issue on Nov 5, 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

    bugerror-messages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions