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

            Bug ID: 25164
           Summary: double -isystem == file not found
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Steps to reproduce:

1)Create simple c++ file like this:
$cat /tmp/test.cpp 
#include <QtCore/QLatin1String>

2)Let's say you have such file structure:

$ ls /usr/include/qt4/QtCore/QLatin1String
/usr/include/qt4/QtCore/QLatin1String

3)Try to compile it:
clang++ -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtGui -c
/tmp/test.cpp

success
g++ -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtGui -c /tmp/test.cpp
success

/usr/lib/clang-analyzer/scan-build/c++-analyzer -isystem /usr/include/qt4
-isystem /usr/include/qt4/QtGui -c /tmp/test.cpp 
/tmp/test.cpp:1:10: fatal error: 'QtCore/QLatin1String' file not found
#include <QtCore/QLatin1String>

but if I remove the second one -isystem:
/usr/lib/clang-analyzer/scan-build/c++-analyzer -isystem /usr/include/qt4  -c
/tmp/test.cpp

all works fine, no "file not found"

Looks like c++-analyzer can not handle multiply -isystem flags, while
clang (3.7) and gcc (5.2) works fine with them.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to