[llvm-bugs] [Bug 33735] New: Clang cannot parse xstring in Visual Studio 2017

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 10 12:29:15 PDT 2017


            Bug ID: 33735
           Summary: Clang cannot parse xstring in Visual Studio 2017
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dpldobrev at protonmail.com
                CC: klimek at google.com, llvm-bugs at lists.llvm.org

I get the following error when parsing:

c:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/VC/Tools/MSVC/14.10.25017/include\xstring:1905:26: error:
constexpr variable '_Memcpy_move_offset' must be initialized by a constant
        static constexpr size_t _Memcpy_move_offset = offsetof(_Mydata_t, _Bx);
                                ^                     ~~~~~~~~~~~~~~~~~~~~~~~~

I understand this is a non-conforming C++ construct. However, shouldn't there
be a way for Clang to cope with it by using a certain set of flags? Shouldn't
"-fms-extensions" and/or "-fms-compatibility" have worked?

The same bug has been asked about at

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/20170710/c49de4dc/attachment.html>

More information about the llvm-bugs mailing list