<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:akimov.dima@gmail.com" title="Dmitry Akimov <akimov.dima@gmail.com>"> <span class="fn">Dmitry Akimov</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED " title="REOPENED --- - Clang will not accept a conversion from a bound pmf(Pointer to member function) to a regular method pointer. Gcc accepts this." href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D22121&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=Gd_Qsr4ezls7wHnIe144Jmdj_rmIlJOLURl6zcXjpng&s=7T3knSDASeH0C3ttMf-MqFD0TJrEL_CkmYigepwseJo&e=">bug 22121</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>akimov.dima@gmail.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>INVALID
</td>
<td>---
</td>
</tr>
<tr>
<td style="text-align:right;">Severity</td>
<td>normal
</td>
<td>enhancement
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED " title="REOPENED --- - Clang will not accept a conversion from a bound pmf(Pointer to member function) to a regular method pointer. Gcc accepts this." href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D22121-23c2&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=Gd_Qsr4ezls7wHnIe144Jmdj_rmIlJOLURl6zcXjpng&s=CiXqNXPOOKdaliaUWSjhmBmAOW1siPykrnCziyxUcMc&e=">Comment # 2</a>
on <a class="bz_bug_link
bz_status_REOPENED " title="REOPENED --- - Clang will not accept a conversion from a bound pmf(Pointer to member function) to a regular method pointer. Gcc accepts this." href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D22121&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=Gd_Qsr4ezls7wHnIe144Jmdj_rmIlJOLURl6zcXjpng&s=7T3knSDASeH0C3ttMf-MqFD0TJrEL_CkmYigepwseJo&e=">bug 22121</a>
from <span class="vcard"><a class="email" href="mailto:akimov.dima@gmail.com" title="Dmitry Akimov <akimov.dima@gmail.com>"> <span class="fn">Dmitry Akimov</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=22121#c1">comment #1</a>)
<span class="quote">> It's a non-conforming extension:
> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__gcc.gnu.org_onlinedocs_gcc-2D4.9.0_gcc_Bound-2Dmember-2Dfunctions.html&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=Gd_Qsr4ezls7wHnIe144Jmdj_rmIlJOLURl6zcXjpng&s=ZuNcrdE7Uq_utM5cUDal8SLdsYsboap08uQaMpxQpSQ&e=">https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Bound-member-functions.html</a></span >
Yes, it is. But there are two reasons for this to be implemented:
1. Clang aims to be a GCC drop-in replacement and mimics GCC. If it does so, I
would expect it to implement all GCC's extensions, at least this one, which is
probably not so complex.
2. This is a very important feature, which is impossible to replace with any
other legal construct of the language. This is a huge oversight by the C++
standard committee that this feature is not available in the language. The PMF
(pointer to member function) is a much more complicated and not nearly as
useful construct than a pointer to bound member function, yet the former is
present in the language, and the latter still isn't.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>