<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - #include_netxt <Intrin.h> is not included in VS?"
   href="https://llvm.org/bugs/show_bug.cgi?id=23147">23147</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>#include_netxt <Intrin.h> is not included in VS?
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.5
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Headers
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>fatwreck@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello, 

I was trying to compile a simple program which called __rdtsc() on MacOs, and
was failing with the following error:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/include/intrin.h:26:15:
fatal error:
      'Intrin.h' file not found
#include_next <Intrin.h>
              ^
1 error generated.

I checked the header file and noticed that comment above #include_next does not
match the code:

<a href="https://github.com/llvm-mirror/clang/blob/3e1cca7ad0cc730b54c1a2057f9ce36a85eab75a/lib/Headers/Intrin.h#L24-L27">https://github.com/llvm-mirror/clang/blob/3e1cca7ad0cc730b54c1a2057f9ce36a85eab75a/lib/Headers/Intrin.h#L24-L27</a>

I think it should be #ifdef _MSC_VER, or I am missing something?

Thank you!

Best,
Alex</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>