[llvm-bugs] [Bug 30382] New: Multiple -isystem seems to add an include path like -I

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 14 07:07:03 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30382

            Bug ID: 30382
           Summary: Multiple -isystem seems to add an include path like -I
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eric.chamberland at giref.ulaval.ca
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

adding multiple -isystem at command line seems to add the paths like "-I" does.

Reproducer:

mkdir bad && mkdir good && echo "#error this shall NEVER happens" > bad/foo.h
&& echo "//ok" > good/foo.h && echo '#include "foo.h"' > main.c

The bug:

clang -isystem ./bad -isystem ./good -I ./good -c main.c
In file included from main.c:1:
./bad/foo.h:1:2: error: this shall NEVER happens
#error this shall NEVER happens
 ^
1 error generated.

BUT, this compiles fine:

clang -isystem ./bad  -I ./good -c main.c

Eric

-- 
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/20160914/dddf5252/attachment-0001.html>


More information about the llvm-bugs mailing list