This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31423] Improve upon "invalid use of member (did you forget the '&' ?)"
- From: "bangerth at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Aug 2009 17:57:09 -0000
- Subject: [Bug c++/31423] Improve upon "invalid use of member (did you forget the '&' ?)"
- References: <bug-31423-231@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from bangerth at gmail dot com 2009-08-05 17:57 -------
However, one of my gripes with the previous error message is that it's
just too obscure: where did I forget the '&', and why would I have wanted
to write them in the first place? It could have said "did you forget to
take the address of this member function?" and it would have been clearer
to me what the message is supposed to tell me.
So, in order to be a bit less obscure, how about this wording:
6: error: invalid use of member (did you forget the argument list?)
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31423