Skip to content

[ICE]: Assigning to oversized array causes error #1783

@Subway2023

Description

@Subway2023

Version: v0.3.3: v0.3.3-70-g32a45ea1
Description: Due to the excessively large size of uint[2100],** the assignment x[0][0] = 1; causes a compiler error.

contract C {
    mapping(uint => uint[2**100]) x;
    mapping(uint => uint[]) y;

    function mutate() public {
        x[0][0] = 1;
    }
}
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/emit/binary.rs:918:80
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

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