Skip to content

Segfault with --asm when accessing calldata array of internal function types #16226

@alex2449

Description

@alex2449

Description

The following code causes the compiler to segfault when compiling with --asm. The issue appears to have started with version 0.8.0. I could not reduce this program any further.

I am not sure if this is related to #16223 but I thought to open a new issue in any case.

Steps to Reproduce

testcase.sol

// SPDX-License-Identifier: GPL-3.0

pragma solidity =0.8.30;

contract C {
    function f1(function () internal pure[] calldata p) internal {
        p[0];
    }

    function f2() external {
        f1;
    }
}

solc --asm testcase.sol

Environment

  • Compiler version: 0.8.30

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions