This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH]: Fix ptr to member syntax checking
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Subject: Re: [C++ PATCH]: Fix ptr to member syntax checking
- From: Jason Merrill <jason at redhat dot com>
- Date: 04 Sep 2000 17:47:25 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <399D03E2.B9B4B8B5@codesourcery.com>
It seems to me that this makes the error message much less helpful. Please
continue to use use the error message from instantiate_type,
- cp_pedwarn
- ("object-dependent reference to `%E' can only be used in a call",
- DECL_NAME (fn));
- cp_pedwarn
- (" to form a pointer to member function, say `&%T::%E'",
- t, DECL_NAME (fn));
rather than the new
+ cp_pedwarn ("assuming pointer to member `%D'", fn);
which does not help the user to know how to fix their code.
Jason