[LLVMbugs] [Bug 15013] Compilation problem using function pointer as non-type template parameter

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 22 09:02:53 PST 2013


Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Douglas Gregor <dgregor at apple.com> 2013-01-22 11:02:53 CST ---
Clang is correct to reject this code. The qualifiers on the function type (the
trailing const) are separate from the qualifiers on the class of which the
function is a member (which are ignored). Thus, void (const foo::*)()' is the
same type as void (foo::*)(), and one cannot convert from void (foo::*) const
to void (foo::*)().

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list