[llvm-bugs] [Bug 31984] New: -frewrite-includes incorrectly removes header

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 16 14:45:45 PST 2017


http://bugs.llvm.org/show_bug.cgi?id=31984

            Bug ID: 31984
           Summary: -frewrite-includes incorrectly removes header
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ag at arvid.io
                CC: llvm-bugs at lists.llvm.org

Created attachment 17998
  --> http://bugs.llvm.org/attachment.cgi?id=17998&action=edit
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.

-- 
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/20170216/ea36403a/attachment.html>


More information about the llvm-bugs mailing list