<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/139031>139031</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] `portability-template-virtual-member-function` warns about pure virtual member functions
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
tearfur
</td>
</tr>
</table>
<pre>
`portability-template-virtual-member-function` warns about pure virtual functions that are overidden and implemented, and the overridden method is used.
Is this a false alarm? If not, how am I supposed to fix this warning?
https://godbolt.org/z/zaT3TWbbb
```
<source>:10:18: warning: unspecified virtual member function instantiation; the virtual member function is not instantiated but it might be with a different compiler [portability-template-virtual-member-function]
10 | virtual void foo() = 0;
| ^
<source>:13:25: note: template instantiated here
13 | struct Derived : public Base<int>
|
```
Current trunk: fc8484f0e383cc5cf31d67ad3e762705955ea1ea
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysVMGOozgQ_ZriUkrL2EDIgQNJJlLfR9qzsYvgXYORXU5v79evSNI9M63dw0prAZbQe8-vnl3WKbnrQtRBfYT6XOjMU4gdk45jjsUQ7HsHjVhDZD047_h9xzSvXjPtbi5y1n430zxQ3I15MezCAo3ANx2XhHoImXHNkfCJxQ9QQp40o46E4UbRWUsL6sWim1dPMy1MFuTp_ounB-iJmomnYNElzInsC4geRP-6CbqEGkftE6H2Os6gLvg64hJ4k5rCG-oZXzHldQ2JLHLA0f35IG6O3XIFdXkITsxrAtWDvIC8XIMdgueXEK8gL39tr_6uvv82DMMDDo14PqIHdUohR0OgvoHqS7F9WlD9j0V6zEtaybjRkf0M5xHkZ0bolsR6YafvsarjPYl_Baet0J84ZHHIjI5xdteJcSB8czyhRuvGkSItjCbMq_MUEerjf9rj-gyiR8RSIOxPuI0PY7fgLI4hgGxBHhDUGQWo4wOP-In_ZUD97R-SU6B6WW9xLYFpmz-M_VrnRJGeftRdP3HMhvFM0d3I4sZc8-CdwaNOBOrkFt7WEP0G_7p_oj_leM-HY17-2Nijaau2GgWpVhlTm1GVttlrq2jfyL2oD3VNuiRd2E7ZgzrogrpyXzVN29RVWUzd3miqRDs0iiqiwyjUoEfVHKra2FZWQ-E6KWQtatGKppKyfNGlMbJWdWsEmaYsoRI0a-dfvL_N20ksXEqZulIdhCoLrwfy6d7HUhqvl-uOnX0HKbe-jt3G2g35mqAS3iVOP3TYsb_fAD_R6jP-n33_5bSmIkfffekxx1MeXkyYQV42b89pt8bwOxkGebkXnEBenjXfOvl3AAAA__9Z3Ys4">