This is the mail archive of the
mailing list for the GCC project.
Re: [RFA] PATCH for PR c++/38228
Dodji Seketeli wrote:
* ocvt.c (cp_convert): Report a meaningful error for non-valid use
+ /* If the conversion failed and expr was an invalid use of pointer to
+ member function, try to report a meaningful error. */
if (flags & LOOKUP_COMPLAIN)
- error ("conversion from %qT to non-scalar type %qT requested",
- TREE_TYPE (expr), type);
+ if (invalid_nonstatic_memfn_p (expr, tf_warning_or_error))
The new comment should be with the call to invalid_nonstatic_memfn_p.
OK with these changes.