<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 --- - double -isystem == file not found"
   href="https://llvm.org/bugs/show_bug.cgi?id=25164">25164</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>double -isystem == file not found
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.7
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>kremenek@apple.com
          </td>
        </tr>

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

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</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>