solang icon indicating copy to clipboard operation
solang copied to clipboard

[ICE]: Assigning to oversized array causes error

Open Subway2023 opened this issue 8 months ago • 0 comments

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

Subway2023 avatar Apr 16 '25 04:04 Subway2023