[llvm-bugs] [Bug 43965] New: Value of _MSVC_LANG doesn't match MSVC++ VS2019 /std:c++latest mode
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 11 09:16:47 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=43965
Bug ID: 43965
Summary: Value of _MSVC_LANG doesn't match MSVC++ VS2019
/std:c++latest mode
Product: clang
Version: 8.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: soumi.manna at intel.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
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
https://go.microsoft.com/fwlink/?linkid=2045807 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
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191111/f1d87d52/attachment-0001.html>
More information about the llvm-bugs
mailing list