<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/87152>87152</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
'class std::set<llvm::BasicBlock*>' has no member named 'completed'
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Victor725
</td>
</tr>
</table>
<pre>
An error enconted when I compiling an llvm pass.
In this pass, I go over all blocks in a function with api provided by DepthFirstIterator.h.
The error code in the pass as follows:
```
std::set<BasicBlock*> visitedSet;
for (auto i = df_ext_begin<BasicBlock*,std::set<BasicBlock*>>(&F.getEntryBlock(), visitedSet),
e = df_ext_end<BasicBlock*,std::set<BasicBlock*>>(&F.getEntryBlock(), visitedSet);
i != e; i++);
```
the error is:
![image](https://github.com/llvm/llvm-project/assets/55656122/ae12e2fb-e17e-4d94-b627-4a46deedd153)
It says that class set has no member named "completed". Is this a matter of my version of c++?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0VE2P4zYM_TXyhUhg0Z85-JBM1kDOLXpdyBZtq5WlQGIyzb8v5KTd6WyLooc1CBgibfLpvSepGM3siDpRnUR1ztSNFx-6X8zIPjRYZYPXj-7ogELwAciN3jFpeF_IwQVGv16NNW4G5cDa-wpXFeNe5GeRHy8OeDFxSwl8gwvMHvydAihrYbB-_C2CcaBgurmRjXfwbngBdTVwDf5uNGkYHnCmKy-9CZEvTEGxD_vlNeLnhV7IRq8pNeOFtoGgIkzeWv8eRXF8fi3q_BXbMrJOpeIYiUXxdlLRjKeESuBRFF_gbqJh0j-l6un5y-QDCGzVjT0YEMUZ9PSVfuevA83GfdcE3_5jRgpsBdb9fib-4jg8XtVW4CGR9gHElnjigE8PfcRCTv94JH8y8hnJP2cNCJQJIoniBEbgaYtvbT5Jw3_paj7Ih1JUJ7OqmUR1FtguzNetjL3Afja83Ib96FeBffLi67W7Bv8rjSywVzESR4F9VdVVLRFTjiQSTsOOZEO7Uh_K3VBjsytVWWsirWVVJKRPSzNE9YjAi2IYbfJZJIZFRXAeVloHCuDUShoEYjodlpi0QNzDJT6Pg4JVMVMAP8H6gDuFmKzvJxhfvBR9prtCH4qDyqiTjZRtnteHOlu6cSjlWMu2VVWT62oaqrZu8qkhNVWVlFVmOsyxzIsilyhlUe_zMi9LOpRUY6HbohBlTqsydp-42fswZybGG3VtIyvMrBrIxu02QHT0DltRIKbLIXQbn8NtjqLMrYkcv3Vhw5Y6gc2Llr_bbdNjW39nPGz-hb_mA39Ndgu2-9-Cb-iT4Nvu_ggAAP__UvR8BA">