Skip to content

C backend: a map key that hashes and compares by its key projection (fn key(), D96) is refused by emit-c #3011

Closed

Description

@ehartford

From #2950: src/CCodegen.w refuses a map keyed by a type with a key projection with "which the C backend does not call yet (#2180)", and #2180 is closed. §11.7: a type whose equality is about one part of its value states that part as its key projection, from which == and the hash follow. The C backend must call the projection's hash and compare as the LLVM backend does. This issue is the open owner of that diagnostic until it does.

Activity

  1. added
    spec-gap
    on Nov 3, 2026
  2. added 2 commits that reference this issue on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    spec-gap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions