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]: Library causes a compilation error. #252

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

[ICE]: Library causes a compilation error. #252

Subway2023 opened this issue Mar 2, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Subway2023
Copy link

Version: 0.1.0-dev.12+commit.76f4cf7.llvm-18.1.8
Description: Both solc and zksolc (zkSync) can compile successfully, but resolc fails to compile.

library TestLibrary {
    
    function testFunction() external pure returns(bool) {
        return true;
    }
}

contract TestContract {
    function testLibraryFunction() public pure returns(bool) {
        return TestLibrary.testFunction();
    }
}
Contract `944b.sol:TestContract` compiling error: The contract `test.sol:TestContract` LLVM IR generator definition pass error: Library `test.sol:TestLibrary` not found in the projectThe contract `test.sol:TestContract` LLVM IR generator definition pass error: Library `test.sol:TestLibrary` not found in the project
@xermicus xermicus self-assigned this Mar 3, 2025
@xermicus xermicus added the bug Something isn't working label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants