Intel® oneAPI Data Parallel C++
Support for Intel® oneAPI DPC++ Compiler, Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and GDB*
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Conformance to C++ standard

eldiener
New Contributor I
645 Views

In the "Developer Guide and Reference" for the oneAPI DPC++/C++ Compiler 2021.1, when discussing "Conformance to the C/C++/DPC++ Standards" I read:

"The Intel® oneAPI DPC++/C++ Compiler conforms to the following standards:

ANSI/ISO ISO C++ 2011 standard for host C++"

In the oneAPI specification in the Overview for DPC++ I read:

"C++. Every DPC++ program is also a C++ program. A compliant DPC++ implementation must support the C++17 Core Language (as specified in Sections 1-19 of ISO/IEC 14882:2017) or newer."

These statements contradict each other. Does the DPC++/C++ compiler implement the C++11 or the C++17 standard. Clang itself has implemented the C++17 standard since version 3.7, and then latest version of clang is 11.0, so i would like to think that the DPC++/C++ compiler implements the C++17 standard and the line in the "Developer Guide and Reference" is incorrect.

0 Kudos
1 Solution
GouthamK_Intel
Moderator
631 Views

Hi Edward,

>>>These statements contradict each other. Does the DPC++/C++ compiler implement the C++11 or the C++17 standard. Clang itself has implemented the C++17 standard since version 3.7, and then latest version of clang is 11.0, so i would like to think that the DPC++/C++ compiler implements the C++17 standard and the line in the "Developer Guide and Reference" is incorrect.

Yes, the DPC++/C++ compiler implements the C++17 standard. Thanks for reporting this to us. We are forwarding this thread to the concerned internal team.

Have a Good day!


Thanks & Regards

Goutham


View solution in original post

3 Replies
GouthamK_Intel
Moderator
632 Views

Hi Edward,

>>>These statements contradict each other. Does the DPC++/C++ compiler implement the C++11 or the C++17 standard. Clang itself has implemented the C++17 standard since version 3.7, and then latest version of clang is 11.0, so i would like to think that the DPC++/C++ compiler implements the C++17 standard and the line in the "Developer Guide and Reference" is incorrect.

Yes, the DPC++/C++ compiler implements the C++17 standard. Thanks for reporting this to us. We are forwarding this thread to the concerned internal team.

Have a Good day!


Thanks & Regards

Goutham


View solution in original post

Trifud
Beginner
256 Views

Does this mean that DPC++/C++ is fully C++17 compliant? What about C++20 support? Is the following page up-to-date https://software.intel.com/content/www/us/en/develop/articles/c17-features-supported-by-intel-c-comp...

Is there a new page for DPC++/C++?

Jie_L_Intel
Employee
301 Views

The coming 2021.2 release will fix these issues in documents.


Reply