Skip to content

[Bug-Candidate]: Slither failed to reference external function using the IdentifierPath approach #2839

@lum7na

Description

@lum7na

Describe the issue:

When a function with the same name as an external function is defined in Yul, it is not possible to reference the external function using the IdentifierPath approach.

Code example to reproduce the issue:

contract State {
    function f() public returns (uint) {
        assembly {
            function f() {}
        }
        return 0;
    }
}

contract C {
    uint y;

    State s;

    function f() public {
        y = s.f();
    }
}

Version:

0.11.3

Relevant log output:

ERROR:ConvertToIR:Function not found f
ERROR:ContractSolcParsing:Impossible to generate IR for C.f (20250207011159.sol#17-19):
 'NoneType' object has no attribute 'type'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-candidateBugs reports that are not yet confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions