- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just recently updated VS2019 and started getting the below error as I compile my code using the below line:
icl -I"C:/Program Files (x86)/IntelSWTools/sw_dev_tools/compilers_and_libraries_2020.2.254/windows/compiler/include" -I/../boost_1_73_0 -I./some-internal-include-path -Qstd=c++17 -fast -Qipo -Qipo -Qopenmp-simd -Qparallel -Qopt-dynamic-align -fp:fast=2 -Qdiag-error-limit:3 -O3 -MD -arch:sse2 -Qopenmp -Fo:DEBUG/obj/my_program.obj -c my_program.cpp
Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.2.254 Build 20200623
Copyright (C) 1985-2020 Intel Corporation. All rights reserved.
my_program.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\xmemory(782): error: attribute does not apply to any entity
using is_always_equal _CXX17_DEPRECATE_OLD_ALLOCATOR_MEMBERS = true_type;
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\xmemory(844): error: attribute does not apply to any entity
using is_always_equal _CXX17_DEPRECATE_OLD_ALLOCATOR_MEMBERS = true_type;
Any clue is much appreciate it.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mike,
>>"I just recently updated VS2019 and started getting the below error as I compile my code using the below line:"
Could you please let us know the latest version of VS2019 which you have currently updated to? Can you please confirm whether you could successfully compile and run the code before you updated the VS2019?
If yes, provide the below details so that we can investigate further.
Prev. VS2019 Version (in which code was working):
Updated VS2019 Version:
If possible, share a small reproducer along with steps to reproduce the issue.
Have a Good day.
Thanks & Regards
Goutham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't remember the previous version however, MSVC\14.28.29910 is the current version.
unfortunately I can't share the code ... I try to reproduce the error.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mike,
Could you please let us know the Intel Product version(Intel Parallel Studio XE / Intel oneAPI Toolkits) which you are currently using?
Also, if possible, please share minimal reproducer code.
Regards
Goutham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Product / Compiler I am using comes as part of Intel System Studio 2019.
Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.2.254 Build 20200623
Here is a C++ snippet to reproduce the error ...
#include <cstdio>
#include <iostream>
int main(){
std::cout << "Hello I am compiled by C++17 STD. How is that going?" << std::endl;
}
Here is the compiler error message ...
c:\temp>icl /Qstd:c++17 test_cpp17.cpp
Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.2.254 Build 20200623
Copyright (C) 1985-2020 Intel Corporation. All rights reserved.
test_cpp17.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\xmemory(782): error: attribute does not apply to any entity
using is_always_equal _CXX17_DEPRECATE_OLD_ALLOCATOR_MEMBERS = true_type;
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\include\xmemory(844): error: attribute does not apply to any entity
using is_always_equal _CXX17_DEPRECATE_OLD_ALLOCATOR_MEMBERS = true_type;
^
compilation aborted for test_cpp17.cpp (code 2)
c:\temp>
Look forward to hearing from.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mike,
>>"Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 19.1.2.254 Build 20200623"
We can see that you are currently using an older version of the Intel compiler, which is not compatible with the latest Visual Studio version. Either you can downgrade the Visual Studio to the supported version or upgrade the Intel compiler.
Please find the details of Intel® Compilers Compatibility with Microsoft Visual Studio* and Xcode*.
We recommend you upgrade to Intel oneAPI to get the latest Intel compilers along with new additional features.
We can see that you are an Intel® System Studio User, so you can install Intel® oneAPI Base & IoT Toolkit, which is equivalent to Intel System Studio. Please find the below link for more detail regarding the same.
Please let us know if this helps. Have a Good day.
Thanks & Regards
Goutham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you really believe Intel C++ Compiler 19.2 cannot handle the C++17?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mike,
>>"Do you really believe Intel C++ Compiler 19.2 cannot handle the C++17?"
C++ 17 should be supported by Intel C++ Compiler 19.2.
Regards
Goutham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Then I would guess there is no point doing an upgrade.
How about you tell which version/build of VS2019 I need to downgrade to? (although I am pretty sure a blackbelt most likely has a better answer.)
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mike,
Could you please confirm which compiler version you are currently using? Also, let us know which build of VS 2019 you are currently using.
Please find the details of Intel® Compilers Compatibility with Microsoft Visual Studio below.
Regards
Goutham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mike,
As Goutham mentioned, you are using the compiler ( v19.1.2.254 Build 20200623), which isn't supported on MSVC(14.28.29910, update Mar-2021). Please use supported MSVC versions as Goutham pointed out and let us know if the issue still occurs.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I updated to MSVS 16.9 and the issue still exists ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
VS2019 v19.6.2 released on Mar-16-2021. Can you try ones that mentioned Intel® Compilers compatibility with Microsoft Visual Studio* and...
VS 2019 v16.8.2 or VS 2019 v16.9.0 Preview 3.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mike,
Can we close this thread as resolved?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Let's close this thread.If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.
Thanks,

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page