Skip to content

Call graph (perl): foreach loop variable read as a call #6434

Closed

Description

@squid-protocol

Found by #3799. foreach my $arg ( @args ) { yields a callee arg (also lv, field, comment, user_id): $var ( after my is a loop variable, not a call. Shape perl not-a-call-in-ts:scalar<for_statement (170).

Activity

  1. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-10-24T11:50Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

  2. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 6434-20261024T0949Z (host melek) ended without a PR. plan-held on real overlap with 6433 (perl.py, _shared_patterns.py); requeued

  3. added
    bug
    scope:frontier
    on Oct 24, 2026
  4. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    Fixed on main by #6433 (sigil-prefixed names before ( are no longer callees); #6461 adds the regression test for the whole loop-variable class. Remaining sibling (package-qualified loop variable foreach $Pkg::x () is rare and recorded in #6461.

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

    bugclaim:melekscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions