Intel® oneAPI Data Parallel C++
Support for Intel® oneAPI DPC++ Compiler, Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and GDB*
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
275 Discussions

Incorrect _MSVC_LANG when compiling with /std:c++latest

ChoonHo
Beginner
494 Views

OS

Windows 10

IDE

Visual Studio 19

Compiler

Intel(R) oneAPI DPC++ compiler

Toolkit

oneAPI Base Toolkit version 2021.1-beta09

Problem

msvc and clang report a value of 201704 whereas DPC++ reports 201703, which causes _HAS_CXX20 to be defined as 0, in turn, disabling C++20 features.

Currently, my workaround is to add -Xclang -std=c++20 which reports a value of 201705. However, SYCL headers are incompatible with C++20 std.

0 Kudos
1 Solution
PrasanthD_intel
Moderator
482 Views

Hi,

 

This is a known issue that while using /std:c++latest with dpcpp in windows, you will face some errors.

Please refer the below release notes for more info: https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-dpcpp-compiler-release-no...

We will inform this issue to our internal team.

 

Regards

Prasanth

 

View solution in original post

3 Replies
PrasanthD_intel
Moderator
483 Views

Hi,

 

This is a known issue that while using /std:c++latest with dpcpp in windows, you will face some errors.

Please refer the below release notes for more info: https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-dpcpp-compiler-release-no...

We will inform this issue to our internal team.

 

Regards

Prasanth

 

View solution in original post

ChoonHo
Beginner
479 Views
PrasanthD_intel
Moderator
441 Views

Hi,


Thanks for the confirmation. We will be closing the thread for now.

Please raise a new thread if you require any additional assistance.


Regards

Prasanth


Reply