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]

Re: [C++ PATCH]: Fix ptr to member syntax checking


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

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