diff --git a/sycl/include/sycl/handler.hpp b/sycl/include/sycl/handler.hpp index 20ab5ea6f5325..bdb974d7f65ef 100644 --- a/sycl/include/sycl/handler.hpp +++ b/sycl/include/sycl/handler.hpp @@ -731,7 +731,11 @@ class __SYCL_EXPORT handler { "unexpected layout. This is a limitation of the compiler." "In many cases the difference is related to capturing constexpr " "variables. In such cases removing constexpr specifier aligns the " - "captures between the host compiler and the device compiler."); + "captures between the host compiler and the device compiler." + "\n" + "In case of MSVC, passing " + "-fsycl-host-compiler-options='/std:c++latest' " + "might also help."); // Empty name indicates that the compilation happens without integration // header, so don't perform things that require it.