Skip to content

[ICE]: Modifier with parameters causes an error. #183

@Subway2023

Description

@Subway2023

sold version: sold 0.77.0+commit.32833737.Linux.g++

contract C {
    modifier m1(uint value) {
        unchecked {
            uint a = 0;
        }
        _;
    }
    modifier m2(uint value) {
        unchecked {
            uint b = 0;
        }
        _;
    }

    function f() public m1(x = 2) m2(y = 3) returns (uint x, uint y) {
    }
}
Unknown exception during compilation: Dynamic exception type: std::out_of_range
std::exception::what: map::at
Compilation failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions