solang
solang copied to clipboard
[ICE]: A long string causes an error.
Version: v0.3.3: v0.3.3-70-g32a45ea1 Description: Solc can compile normally.
contract C {
function f() public pure returns (string memory result) {
assembly {
result := hex"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f"
}
}
}
solang test.sol --target solana
solang: llvm/lib/Support/APInt.cpp:2106: void llvm::APInt::fromString(unsigned int, llvm::StringRef, uint8_t): Assertion `(((slen-1)*64)/22 <= numbits || radix != 10) && "Insufficient bit width"' failed.