Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7953 Discussions

Updated VS2019 now getting using is_always_equal _CXX17_DEPRECATE_OLD_ALLOCATOR_MEMBERS = true_type

mikeitexpert
New Contributor II
1,928 Views

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.

 

0 Kudos
14 Replies
GouthamK_Intel
Moderator
1,873 Views

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


0 Kudos
mikeitexpert
New Contributor II
1,846 Views

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,

0 Kudos
GouthamK_Intel
Moderator
1,793 Views

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


0 Kudos
mikeitexpert
New Contributor II
1,785 Views

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

 

0 Kudos
GouthamK_Intel
Moderator
1,757 Views

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*.

https://software.intel.com/content/www/us/en/develop/articles/intel-compilers-compatibility-with-microsoft-visual-studio-and-xcode.html

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.

https://software.intel.com/content/www/us/en/develop/tools/oneapi/commercial-base-iot.html#linklist_1519377622__248621770

Please let us know if this helps. Have a Good day.


Thanks & Regards

Goutham


0 Kudos
mikeitexpert
New Contributor II
1,738 Views

Do you really believe Intel C++ Compiler 19.2 cannot handle the C++17?

0 Kudos
GouthamK_Intel
Moderator
1,688 Views

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


0 Kudos
mikeitexpert
New Contributor II
1,679 Views

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 

0 Kudos
GouthamK_Intel
Moderator
1,638 Views

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.

https://software.intel.com/content/www/us/en/develop/articles/intel-compilers-compatibility-with-microsoft-visual-studio-and-xcode.html


Regards

Goutham


Viet_H_Intel
Moderator
1,601 Views

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,


0 Kudos
mikeitexpert
New Contributor II
1,588 Views

I updated to MSVS 16.9 and the issue still exists ...

 

mikeitexpert_0-1619540961476.png

 

0 Kudos
Viet_H_Intel
Moderator
1,586 Views

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,


Viet_H_Intel
Moderator
1,514 Views

Hi Mike,


Can we close this thread as resolved?


Thanks,


0 Kudos
Viet_H_Intel
Moderator
1,494 Views

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,


0 Kudos
Reply