<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61857>61857</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang doesn't fully implement [temp.func.order]/6
</td>
</tr>
<tr>
<th>Labels</th>
<td>
c++20,
clang:frontend,
rejects-valid,
concepts
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
cjdb
</td>
</tr>
</table>
<pre>
It looks like neither GCC nor Clang can compile [[temp.func.order]/example-6](https://eel.is/c++draft/temp.func.order#example-6) (see [Compiler Explorer](https://godbolt.org/z/rhaK3cdba)).
It might be a defect in the example (perhaps it meant to say "error" instead of "OK"), but my reading of the paragraph suggests that [p6.4](https://eel.is/c++draft/temp.func.order#6.4) should apply in the failing case. Alternatively, this is a spaceship issue, rather than a [P2113](http://wg21.link/P2113) one.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykk8GOrTYMhp8mbKxBYA4cWLCYOVOqq7toXyEkBnInJFFipvf06asw03ukUXfdgGJH_j_Hv2VKZnVEo2hfRPtayIM3H0f1Q8_F7PV9_MZgvX9LYM0bgSPDG0X4_XYD5yPcrHQrKOlA-T0YS3DWeWHaQ7kcTpU-aoqifRU40U-5B0tP3XnsN-aQRPMscMpJsqVJAicl8EXgi45yYYHT10rYPMrgAAL7RKfq7QMgwm8_g_XxU_SLyur17C2XPq4Cp78FTnGT3xulZylwEDiUonoV1fPH9xvDbtaNYSaQoGkhxWAc8EbwSZEBAsVNhgSGYSfpGNhDkncQiBSjjwIRjEtMUoNfcviP7wLxFLzBfDDsd4gktXFrvpDLBxnlGmXYIB3rSokT8CY5Nxq68vL_XjAXwAHS5g-rQYZg7_-2tUhjzTnSRCU8W6boJJt3svcMy5tJYBJISEEqSpsJYFI6KCejPL3Bm3QgM-mfWNfNA_UX6V8r1qU17k3g9HEHB_COykKPjR6aQRY01l1fITbXS19s43K9drJVqlZD01-watthrmrd9qSxpfpamBErbKqmqavqMlR9SV1T1UrqDodlaDolLhXt0tjS2vc9z784uceu7ttrYeVMNp1LgPj5flidQ7rlSLa5aJ6X6B2T078SkX6Q4vT0Lq15RJV3igKnHGhfizhmzaf5WJO4VNYkTg8KNmxp_Ngj7Sk5gVeG5bB5JtlhO7lz7P-5Ul1xRDt-8bjh7ZhL5XeBU9b5_D2F6DOtwOlsPVvl7P6fAAAA__9fUkM8">