Skip to content

Inconsistent subassembly object ID for different sizes of size_t #15953

Open
@clonker

Description

@clonker

Description

When compiling solc for different sizes of size_t, e.g., comparing emscripten and linux builds, the object ID of subassembly paths as determined here

size_t objectId = std::numeric_limits<size_t>::max() - m_subPaths.size();

will be inconsistent between the two builds. This potentially leads to inconsistent assembly text between emscripten and native 64 bit builds.

We should test the precise impact this has and fix it to the 64 bit behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions