Skip to content

🚸 Workaround clang bug with consteval UDLs #242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2025

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Jul 1, 2025

Problem:

  • clang has a persistent regression where it ICEs with the error "trying to emit a call to an immediate function". This seems to be provoked by consteval UDLs.

Solution:

  • When using clang, mark UDLs as constexpr rather than consteval.

Problem:
- clang has a persistent regression where it ICEs with the error "trying to
  emit a call to an immediate function". This seems to be provoked by
  `consteval` UDLs.

Solution:
- When using clang, mark UDLs as `constexpr` rather than `consteval`.
@lukevalenty lukevalenty enabled auto-merge July 1, 2025 23:21
@lukevalenty lukevalenty merged commit effadd4 into intel:main Jul 1, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants