-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Open
Labels
A-intrinsicsArea: IntrinsicsArea: IntrinsicsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: 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.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
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
Metadata
Metadata
Assignees
Labels
A-intrinsicsArea: IntrinsicsArea: IntrinsicsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: 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.Relevant to the compiler team, which will review and decide on the PR/issue.