Skip to content

Allow verbatim in Solidity assembly blocks #12067

Open
@dessaya

Description

@dessaya

There is currently support for verbatim, allowing to instert arbitrary bytecode, but only when compiling in strict assembly mode. But the verbatim group of functions ios not available inside assembly blocks in Solidity code. Example:

function f() {
	assembly {
		verbatim_0i_0o(hex"c0")
	}
}

When compiling with solc:

Error: Function "verbatim_0i_0o" not found.

What is the motivation for disabling verbatim in Solidity? I understand that it must be used with care and only for very specific reasons. My use case is that I am targetting a forked version of the EVM interpreter with new opcodes. I'm currently unable to use solc to compile contracts targetting this fork.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    language design :rage4:Any changes to the language, e.g. new featuresmedium effortDefault level of effortmedium impactDefault level of impactmust have eventuallySomething we consider essential but not enough to prevent us from releasing Solidity 1.0 without it.needs designThe proposal is too vague to be implemented right away

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions