<html>
    <head>
      <base href="https://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 - Clang :: Misc/warning-flags-tree.c fails with -D_GLIBCXX_DEBUG"
   href="https://bugs.llvm.org/show_bug.cgi?id=37045">37045</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang :: Misc/warning-flags-tree.c fails with -D_GLIBCXX_DEBUG
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>matthias.krueger@famsik.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi, I used the monorepo as source.

CC and CXX used to build were clang(++) 6.0
Cmake config:

cmake ../llvm-project-20170507/llvm -G "Ninja" \
        -DCMAKE_BUILD_TYPE=Release \
        -DLLVM_BINUTILS_INCDIR=/usr/include \
        -DCMAKE_C_FLAGS="-march=native -O3 -g0 -D_GLIBCXX_DEBUG" \
        -DCMAKE_CXX_FLAGS="-march=native -O3 -g0 -D_GLIBCXX_DEBUG" \
        -DLLVM_PARALLEL_LINK_JOBS=1 \
        -DLLVM_TARGETS_TO_BUILD="X86" \
        -DLLVM_OPTIMIZED_TABLEGEN=1 \
        -DLLVM_BUILD_TOOLS=0 \
        -DLLVM_ENABLE_PROJECTS="llvm;clang;lld"


test output:

FAIL: Clang :: Misc/warning-flags-tree.c (5417 of 12211)
******************** TEST 'Clang :: Misc/warning-flags-tree.c' FAILED
********************
Script:
--
diagtool tree --internal |
/home/matthias/LLVM/LLVM_debug/stage_1/build/bin/FileCheck -strict-whitespace
/home/matthias/LLVM/LLVM_debug/stage_1/llvm-project-20170507/clang/test/Misc/warning-flags-tree.c
diagtool tree --internal -Weverything |
/home/matthias/LLVM/LLVM_debug/stage_1/build/bin/FileCheck -strict-whitespace
/home/matthias/LLVM/LLVM_debug/stage_1/llvm-project-20170507/clang/test/Misc/warning-flags-tree.c
diagtool tree --internal everything |
/home/matthias/LLVM/LLVM_debug/stage_1/build/bin/FileCheck -strict-whitespace
/home/matthias/LLVM/LLVM_debug/stage_1/llvm-project-20170507/clang/test/Misc/warning-flags-tree.c
not diagtool tree -Wthis-is-not-a-valid-flag
diagtool tree --internal -Wgnu |
/home/matthias/LLVM/LLVM_debug/stage_1/build/bin/FileCheck -strict-whitespace
-check-prefix CHECK-GNU
/home/matthias/LLVM/LLVM_debug/stage_1/llvm-project-20170507/clang/test/Misc/warning-flags-tree.c
diagtool tree -Wgnu |
/home/matthias/LLVM/LLVM_debug/stage_1/build/bin/FileCheck -check-prefix
CHECK-FLAGS-ONLY
/home/matthias/LLVM/LLVM_debug/stage_1/llvm-project-20170507/clang/test/Misc/warning-flags-tree.c
--
Exit Code: 2
Command Output (stderr):
--
/usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.1/../../../../include/c++/7.3.1/bits/stl_algo.h:2031:
Error: elements in iterator range [__first, __last) are not partitioned by
the predicate __comp and value __val.
Objects involved in the operation:
    iterator "__first" @ 0x0x7ffd8cc77940 {
    }
    iterator "__last" @ 0x0x7ffd8cc77938 {
    }
FileCheck error: '-' is empty.
FileCheck command line: 
/home/matthias/LLVM/LLVM_debug/stage_1/build/bin/FileCheck -strict-whitespace
/home/matthias/LLVM/LLVM_debug/stage_1/llvm-project-20170507/clang/test/Misc/warning-flags-tree.c
--
********************


meta: 
glibc 2.26-1
gcc  7.3.1+20180312-1
linux 4.14.30-1-MANJARO</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>