Skip to content

Semicolons are erroneously allowed in inline assembly #385

@axic

Description

@axic

Examples:
In std:

        | 0 => assembly { res := mstore(add(loc, mul(iw, 32)), vw); }

In dispatch:

  assembly {
    let sel := shr(224, calldataload(0));
    res := eq(sel, candidate);
  }

When translated to the output Yul these semicolons are removed, so it does compile there. Not sure if this is intended or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions