[llvm-bugs] [Bug 50465] New: [clang-cl] MSVC to add /std:c++20 soon

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 25 08:29:18 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50465

            Bug ID: 50465
           Summary: [clang-cl] MSVC to add /std:c++20 soon
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Casey at Carter.net
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

MSVC will be adding the `/std:c++20` option in our 16.11 release. More
precisely, you could say we'll rename the existing `/std:c++latest` to
`/std:c++20` (which defines `_MSVC_LANG` to C++20's __cplusplus value of
`202002L`) and then add a new `/std:c++latest` option which defines
`_MSVC_LANG` to `202004L`. (I have no idea how the compiler team chose
`202004L`, but I suppose it doesn't matter as long as the value is `> 202002L`.
Perhaps https://xkcd.com/221/?)

clang-cl should be updated to have the same behavior in the next release.

-- 
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/20210525/306341b4/attachment-0001.html>


More information about the llvm-bugs mailing list