Skip to content

[clang][SYCL] Skip allocation diagnostic in unevaluated contexts#21614

Draft
schittir wants to merge 1 commit intointel:syclfrom
schittir:unevaluated_context
Draft

[clang][SYCL] Skip allocation diagnostic in unevaluated contexts#21614
schittir wants to merge 1 commit intointel:syclfrom
schittir:unevaluated_context

Conversation

@schittir
Copy link
Contributor

This patch adds a check to avoid emitting "SYCL kernel cannot allocate storage" diagnostic in unevaluated contexts, such as for operator new expressions in C++20 concepts and requires clauses.

This fixes false positive errors with GCC 13's standard library which uses concepts with ::new expressions.

This patch adds a check to avoid emitting "SYCL kernel cannot
allocate storage" diagnostic in unevaluated contexts, such as for
operator new expressions in C++20 concepts and requires clauses.

This fixes false positive errors with GCC 13's standard library
which uses concepts with ::new expressions.
@schittir schittir requested a review from a team as a code owner March 24, 2026 18:16
@schittir schittir marked this pull request as draft March 24, 2026 18:17
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.

1 participant