[LLVMbugs] [Bug 14525] Failed template instantiation with const object and const member function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 6 14:15:34 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14525

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|                            |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-12-06 16:15:34 CST ---
This is not valid. You are trying to pass a member of type

  int (API::*)(int) const

to a parameter of type

  int (C::*)(int)

where C = const API. This type is equivalent to

  int (API::*)(int)

because the cv-qualifiers are ignored by [class.name]p5. There is no viable
conversion to that type, so the call fails.

If you believe this is not the correct resolution, please indicate where you
believe the standard suggests that this should work.

-- 
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