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

[BUG] Internal compiler error /solidity/libsolidity/ast/Types.cpp(1982) Expected detailed error message! #15737

Open
Jizhou-Chen opened this issue Jan 20, 2025 · 0 comments
Labels

Comments

@Jizhou-Chen
Copy link

Description

Error:

Internal compiler error:
/solidity/libsolidity/ast/Types.cpp(1982): Throw in function virtual solidity::frontend::TypeResult solidity::frontend::ArrayType::interfaceType(bool) const
Dynamic exception type: boost::wrapexcept<solidity::langutil::InternalCompilerError>
std::exception::what: Expected detailed error message!
[solidity::util::tag_comment*] = Expected detailed error message!

Note: This bug was reported in #8280 and marked as completed in 2020. However, it still exists in the latest release (v0.8.28), hence this report.

Environment

  • Compiler version: Version: 0.8.28-develop.2025.1.19+commit.7893614a.mod.Linux.g++
  • Compilation pipeline (legacy, IR, EOF):
  • Target EVM version (as per compiler settings):
  • Framework/IDE (e.g. Foundry, Hardhat, Remix):
  • EVM execution environment / backend / blockchain client:
  • Operating system: Ubuntu 22.04

Steps to Reproduce

poc.sol (fuzzer-generated):

contract test {
    struct S {
        uint8[] a;
        string[2] b;
    }

    S[][] s1;
    S[][1] s2;
    S[1][] s3;

    function f(bytes calldata data)
        external
        pure
        returns (uint256[2][3] memory)
    {
        return abi.decode(data, (super[3]));
    }

    function test2(S[][1] memory _a) public returns (S[][1] memory) {}

    function f(uint[2] memory) public pure {}
}

To reproduce:
solc --bin -o poc poc.sol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant