[LLVMbugs] [Bug 22121] Clang will not accept a conversion from a bound pmf(Pointer to member function) to a regular method pointer. Gcc accepts this.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 30 02:17:00 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=22121
Dmitry Akimov <akimov.dima at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |akimov.dima at gmail.com
Resolution|INVALID |---
Severity|normal |enhancement
--- Comment #2 from Dmitry Akimov <akimov.dima at gmail.com> ---
(In reply to comment #1)
> It's a non-conforming extension:
> https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Bound-member-functions.html
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150730/64b8c11b/attachment.html>
More information about the llvm-bugs
mailing list