Skip to content

[SYCL] Remove unnamed lambda check from headers #14614

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

Conversation

steffenlarsen
Copy link
Contributor

Currently the SYCL headers checks for unnamed lambdas in the case where they have been disabled. However, this falsely flags functor objects which should not be covered by the unnamed lambda restriction. Luckily, the compiler already issues diagnostics for illegal unnamed lambdas, so this patch removes the check from the headers and instead relies on the frontend for issuing diagnostics for the illegal cases.

Currently the SYCL headers checks for unnamed lambdas in the case where
they have been disabled. However, this falsely flags functor objects
which should not be covered by the unnamed lambda restriction. Luckily,
the compiler already issues diagnostics for illegal unnamed lambdas, so
this patch removes the check from the headers and instead relies on the
frontend for issuing diagnostics for the illegal cases.

Signed-off-by: Larsen, Steffen <[email protected]>
Copy link
Contributor

@uditagarwal97 uditagarwal97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@steffenlarsen steffenlarsen merged commit 7d7ab2f into intel:sycl Jul 18, 2024
15 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