<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/73580>73580</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
WatchpointResource.cpp build fails with `error: no member named 'find' in namespace 'std'; did you mean 'fill'?̀
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lldb,
build-problem
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
```
/build/source/build-llvm/./bin/clang++ -DHAVE_ROUND -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/source/Breakpoint -I/build/source/lldb/source/Breakpoint -I/build/source/lldb/include -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/include -I/build/source/build-llvm/tools/clang/stage2-bins/include -I/build/source/llvm/include -I/usr/include/python3.11 -I/build/source/clang/include -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/../clang/include -I/build/source/lldb/source -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/source -isystem /usr/include/libxml2 -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/source/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/build/source/= -no-canonical-prefixes -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -O2 -DNDEBUG -g1 -std=c++17 -fno-exceptions -funwind-tables -MD -MT tools/lldb/source/Breakpoint/CMakeFiles/lldbBreakpoint.dir/WatchpointResource.cpp.o -MF tools/lldb/source/Breakpoint/CMakeFiles/lldbBreakpoint.dir/WatchpointResource.cpp.o.d -o tools/lldb/source/Breakpoint/CMakeFiles/lldbBreakpoint.dir/WatchpointResource.cpp.o -c /build/source/lldb/source/Breakpoint/WatchpointResource.cpp
/build/source/lldb/source/Breakpoint/WatchpointResource.cpp:59:12: error: no member named 'find' in namespace 'std'; did you mean 'fill'?
59 | std::find(m_constituents.begin(), m_constituents.end(), wp_sp);
| ~~~~~^~~~
| fill
/usr/lib/gcc/aarch64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:1000:5: note: 'fill' declared here
1000 | fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value)
| ^
/build/source/lldb/source/Breakpoint/WatchpointResource.cpp:58:14: error: cannot form a reference to 'void'
58 | const auto &it =
| ^
/build/source/lldb/source/Breakpoint/WatchpointResource.cpp:76:12: error: no member named 'find_if' in namespace 'std'
76 | std::find_if(m_constituents.begin(), m_constituents.end(),
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0V11v47oR_TX0C0FDphJ_PPjBsePbAE1SZLM1-mSMyJE8XYpUScqJ-9DfXlCy4-y9yd10uxECOZohz8wcHg4lCIEqizhnl1fscjWANu6cn4eD2WOIHgeF04c5G2fHv2zFssXxLtdFS0YzuQ6u9QpPBmHMvmZyPUwGskyulQFbMXnF5BUXq78s_n69fbj_erfiYrX97e7r9sv914fldXrafnlcLbfL-7svj4u7x-3tYvlw_-XsWN8_3C7-aP7rze3N2Xrzw8yicyac81qHCBVKUZANr7zG6OI1xJVH-NY4svGdGD87gawyrcZfnvkvw_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