solang icon indicating copy to clipboard operation
solang copied to clipboard

[ICE]: Big array with public causes a compilation error.

Open Subway2023 opened this issue 10 months ago • 0 comments

Version: v0.3.3: v0.3.3-70-g32a45ea1 Description: If you remove 'public', Solang can compile normally. If you replace 2**100 with value within 2**32, Solang can also compile normally. The error location in the source code can be found at the link.

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

Subway2023 avatar Mar 10 '25 06:03 Subway2023