Skip to content

Intrinsics should allow a non-const fallback body if hooked for CTFE #150961

Description

@tgross35

Currently if an intrinsic is marked const, its body needs to be const as well. This makes sense when the body is providing the comptime implementation, but is limiting in cases where CTFE hooks the function so the fallback would only ever be called in non-const contexts.

Noticed in #150946

Activity

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

    A-intrinsicsArea: IntrinsicsC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions