<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylUsFy2yAQ_Rp02YlGAsmxDjrEcf0BbX4AwdqiRaAAsid_30V2msbT6SUaSbDA7nv7eIPXb_3LaCIor5FVe1Y9sU11e9cwprCoBE_AHnfXFaAnJpmMAuMSHBnfyiV5xrt8BgKmJTiomdhRvP_IuT8c8HUxASMQAv6dyj-l5onY_ZMb8TbuLK3RMGOAMaU5MvHE-IHeZKbo3elBzXN5MmlchtIQ7oHiy0yja7abOsdWxlheGyqno0qMC56rXBHFN3gZMSDEUVoLzicYEOS7AtJpCpx3D7eFCaeBuBwXp5LxDi4EDWmkfDkhuPzLOX9WZhloSJSS3mYSgwRi7c6fMZTWS83aPWlV3sis_92S4NlKdwKpFM6JREgrjKcNCRcZnKHNrHSE6AnDE1qgK55mYzFE0Fl_xp_hMho1gpUZfg5eLwqzFdxxibkEhuBDLOE75iMatIlqiZHaIn3u5Kb21a9M-2j9pSQsWnul77FqG843bZ4K3rZdV-he6E50siAnjD70B9ShWILtP1e8Xdq1lLXn9-GBmP7EfE8HE-OCkSYt79q6GPtBaak570TN6w7lttHVVlQom822OW6EKKwc0MaeJGacO7zAWoLmJHTxdQam5xXnVV1xarsVXdkg4YvmsWt1rZQQrKlwksaWuU7pw6kI_VpyWE6RNq2JKX5skjXNySGuhIlhMsli_-PDe_9xXsJpzvcW7zx47zhJ5r46CXWx9tOvzfwGsCtRAw>52951</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Static and non-static member function templates with the same parameter types are accepted
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Fedr
</td>
</tr>
</table>
<pre>
This code
```
struct A {
static int f(auto) { return 1; }
int f(auto) requires true { return 2; }
};
```
is invalid per https://timsong-cpp.github.io/cppwp/n4861/class.static.mfct#2:
> There shall not be a static and a non-static member function with the same name and the same parameter types ([over.load]).
But Clang accepts it without a warning (as some other compilers do), which later produces confusing errors. Related discussion: https://stackoverflow.com/q/70542265/7325599
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9U1Fy2yAQPQ362YlGBuNYH_qwk_oAbS6AYGXRIlAAxZPbd5GdpvF0qpFgd2H3Pd6iPpj37mW0CXQwyJpn1hzYrrm9q5tyXHSGA7DH4zUC9KSsstVgfYaB8b1acmC8LXsgYl6ihw0TR_KfP3PuN0d8XWzEBISAf6fyL6nFEMd_ciPe1r8pZw3MGGHMeU5MHBg_0ZvtlII_P-h5rs82j0tfW8I9kX-Zafbb_W5TfKdSqq8HqqdBZ8YFL1WuiOIbvIwYEdKonAMfMvQI6kMB5Q05PviHW2DCqScuw-J1tsHDhaAhj5SvJgRfhpLzJzKrSFOmlPw-kxgkEJPH8IaxdkEZJp9Jq_pGZh2PS4Ynp_wZlNY4ZxIhrzCBFhRcVPSWFovSCVIgjEBokVo8zdZhTGCK_ow_wWW0egSnCvwcg1k0lqvghyWVEhhjiKmG71i2GDA26SUlOhbpcyc3HV__KrQHFy41YVHslb7HRm4538liCi5l21amE6YVraqyzQ67H59K_kfHjNNcWKQ7Re_1U9Sqqy5oqiW67ivN20248nPu7WN6oOP_xNL8k01pwUSG5K3cVGPH901rzGaQQhmtzLDfyZ7vNJdG7xqjsHKqR5c66hvj3OMF1hJkU_cq2_GG82bTcFJCirbe4l40YvvYSrPRWgi2bXBS1tWFRx3iuYrdSqlfzokWnU05fS7SbbVnj7jCUX36ncYQuxOaWK243cr7N5poPH8">