This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] PATCH for PR c++/38228


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]