Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
7782 Discussions

Bug report for Intel Compiler v19.0 - rejection on [[deprecated]] tag breaks a library that will be in the C++ 20 standard


Hi there,

Just to let you know, I've been working with the author of an upcoming standard that will be in C++20. The library is {fmt/fmtlib}. Unfortunately, this library worked with all major compilers, but it threw a compile error with the Intel Compiler v19.0.

Traced the problem to the Intel Compiler v19.0 not accepting the [[deprecated]] element on some elements that the MSVC compiler accepts it on. All other compilers (including MSVC) accept their equivalent of [[deprecated]] on this element (some in different form, e.g. GCC).


To reproduce the issue:

1. Check out v6.0.0 of said library from:

2. Compile it, it will throw four errors, as the [[deprecated]] tag is accepted by MSVC on some elements, but rejected by the Intel Compiler.

3. Check out master, with the fix 744302a:

4. Compile, it will work perfectly under both MSVC and Intel.

Thank you.

p.s. I emailed this issue to, as per the instructions, but received a wall of silence in response. So I am posting to this forum in the hope that it will reach the relevant people.

0 Kudos
1 Reply

Can you create a pre-processed file and provide to us? And also let us know which the VS2017 version.