Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ICE]: A long string causes an error. #1760

Open
Subway2023 opened this issue Mar 12, 2025 · 0 comments
Open

[ICE]: A long string causes an error. #1760

Subway2023 opened this issue Mar 12, 2025 · 0 comments

Comments

@Subway2023
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant