[RFA] PATCH for PR c++/38228
Jason Merrill
jason@redhat.com
Tue Apr 21 17:03:00 GMT 2009
Dodji Seketeli wrote:
> * ocvt.c (cp_convert): Report a meaningful error for non-valid use
cvt.c.
> + /* 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.
Jason
More information about the Gcc-patches
mailing list