https://llvm.org/bugs/show_bug.cgi?id=22121

Dmitry Akimov <akimov.d...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |akimov.d...@gmail.com
         Resolution|INVALID                     |---
           Severity|normal                      |enhancement

--- Comment #2 from Dmitry Akimov <akimov.d...@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.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to