<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 - undeclared identifier _LIBCPP_UNREACHABLE/FALLTHROUGH when build w/monorepo + sanitizer"
   href="https://bugs.llvm.org/show_bug.cgi?id=38617">38617</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>undeclared identifier _LIBCPP_UNREACHABLE/FALLTHROUGH when build w/monorepo + sanitizer
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++abi
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.0
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>brian.cain@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>With g++ 4.8.4 + llvm monorepo + LLVM_USE_SANITIZER:STRING=Address +
LLVM_USE_SANITIZE_COVERAGE:BOOL=On, build fails with errors below.

cxa_demangle.cpp doesn't directly include __config AFAICT and it wasn't obvious
to me how it would get it indirectly.  Does it make sense to just add an ifndef
_LIBCPP_{UNREACHABLE,FALLTHROUGH} and provide defaults?  If so I can make a
patch.

~~~~~
g++   -D_DEBUG -D_GNU_SOURCE -D_LIBCPP_DISABLE_EXTERN_TEMPLATE
-D_LIBCPP_ENABLE_CXX17_REMOVED_UN
EXPECTED_FUNCTIONS -D_LIBCXXABI_BUILDING_LIBRARY -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS
 -D__STDC_LIMIT_MACROS -Iprojects/libcxxabi/fuzz
-I/local/mnt/workspace/bcain-ubuntu_bcain_6589_
36JEP/llvm-project/libcxxabi/fuzz -Iinclude
-I/local/mnt/workspace/bcain-ubuntu_bcain_6589_36JEP
/llvm-project/llvm/include
-I/local/mnt/workspace/bcain-ubuntu_bcain_6589_36JEP/llvm-project/lib
cxxabi/include -fPIC -fvisibility-inlines-hidden -Werror=date-time
-Werror=unguarded-availabilit
y-new -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wmissing-field
-initializers -pedantic -Wno-long-long -Wcovered-switch-default
-Wnon-virtual-dtor -Wdelete-non-
virtual-dtor -Wstring-conversion -fno-omit-frame-pointer -gline-tables-only
-fsanitize=address -
fsanitize-address-use-after-scope -fsanitize=fuzzer-no-link -fdiagnostics-color
-ffunction-secti
ons -fdata-sections  -O3    -UNDEBUG -MMD -MT
projects/libcxxabi/fuzz/CMakeFiles/cxa_demangle_fu
zzer.dir/__/src/cxa_demangle.cpp.o -MF
projects/libcxxabi/fuzz/CMakeFiles/cxa_demangle_fuzzer.dir/__/src/cxa_demangle.cpp.o.d
-o
projects/libcxxabi/fuzz/CMakeFiles/cxa_demangle_fuzzer.dir/__/src/cxa_demangle.cpp.o
-c
/local/mnt/workspace/bcain-ubuntu_bcain_6589_36JEP/llvm-project/libcxxabi/src/cxa_demangle.cpp
/local/mnt/workspace/bcain-ubuntu_bcain_6589_36JEP/llvm-project/libcxxabi/src/cxa_demangle.cpp:1158:5:
error: use of undeclared identifier '_LIBCPP_UNREACHABLE'
    _LIBCPP_UNREACHABLE();
    ^</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>