<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Value of _MSVC_LANG doesn't match MSVC++ VS2019 /std:c++latest mode"
   href="https://bugs.llvm.org/show_bug.cgi?id=43965">43965</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Value of _MSVC_LANG doesn't match MSVC++ VS2019 /std:c++latest mode
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>8.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>soumi.manna@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The value for a MS specific macro differs from Microsoft starting with VS2019
in /std:c++latest mode.

-bash-4.2$ cat msvclang.cpp

_MSVC_LANG

-bash-4.2$ cl /std:c++latest -E msvclang.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.20.27508.1 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

/std:c++latest is provided as a preview of language features from the latest
C++
working draft, and we're eager to hear about bugs and suggestions for
improvements.
However, note that these features are provided as-is without support, and
subject
to changes or removal as the working draft evolves. See
<a href="https://go.microsoft.com/fwlink/?linkid=2045807">https://go.microsoft.com/fwlink/?linkid=2045807</a> for details.

msvclang.cpp
#line 1 "msvclang.cpp"

201705L


-bash-4.2$ clang-cl /std:c++latest -E  msvclang.cpp
# 1 "msvclang.cpp"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 391 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "msvclang.cpp" 2
201704L

Thanks,
Soumi Manna
Intel C++ Compiler</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>