Skip to content

Conversation

KseniyaTikhomirova
Copy link
Contributor

On Windows with -Wc++-narrowing (enabled by default) known-identity test fails because initializer list has limitations and doesn't allow narrowing conversions. It may occur when e.g. we use operator~ which upgrades type. In this case check EnableIfSuitableTypes succeeds but initializer list limitations may cause compilation errors. Inserting static_cast is valid since we already have a check for allowed types.

Signed-off-by: Tikhomirova, Kseniya kseniya.tikhomirova@intel.com

Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
@KseniyaTikhomirova
Copy link
Contributor Author

@intel/llvm-reviewers-runtime hello, it is ready to merge.

@steffenlarsen steffenlarsen merged commit 52e02bd into intel:sycl Nov 16, 2022
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.

3 participants