<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Clang cannot parse xstring in Visual Studio 2017"
   href="https://bugs.llvm.org/show_bug.cgi?id=33735">bug 33735</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>rnk@google.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Clang cannot parse xstring in Visual Studio 2017"
   href="https://bugs.llvm.org/show_bug.cgi?id=33735#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Clang cannot parse xstring in Visual Studio 2017"
   href="https://bugs.llvm.org/show_bug.cgi?id=33735">bug 33735</a>
              from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
        <pre>This error suggests you are not using Clang's version of stddef.h, which
provides a constexpr-compatible implementation of offsetof.

This code compiles successfully with clang on Windows:

#include <stddef.h>
struct Foo { int x, y; };
constexpr size_t off = offsetof(Foo, y);

Check your -isystem flags, and make sure the Windows SDK include directory does
not appear on that list, or it will supersede clang's internal resource
directory headers. Use -imsvc for Windows SDK headers and MSVCRT headers to
make them system headers that appear after the resource directory in include
search.</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>