<html>
    <head>
      <base href="http://bugs.llvm.org/">
    </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 - -frewrite-includes incorrectly removes header"
   href="http://bugs.llvm.org/show_bug.cgi?id=31984">31984</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-frewrite-includes incorrectly removes header
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>ag@arvid.io
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=17998" name="attach_17998" title="Shell Script to easily reproduce the issue">attachment 17998</a> <a href="attachment.cgi?id=17998&action=edit" title="Shell Script to easily reproduce the issue">[details]</a></span>
Shell Script to easily reproduce the issue

If a program is preprocessed with "-frewrite-includes" the preprocessor,
incorrectly, removes the header, which results in a compiler error.

In the attache example a C program is generated with the 'stdatomic.h' include.
Preprocessed with rewrite-includes and than compiled.

Tested on OS X 10.11, with both Xcode 7 and a self-compiled LLVM 3.6.</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>