This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77777] Use rich location to mark correct expression for "invalid use of non-static member function"
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 Sep 2016 16:33:55 +0000
- Subject: [Bug c++/77777] Use rich location to mark correct expression for "invalid use of non-static member function"
- Auto-submitted: auto-generated
- References: <bug-77777-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77777
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Or maybe even better, make the caret point to the member function, but cover
the entire expression:
x.foo
~~^~~
(Please ignore the "did you mean...?" part shown in the initial comment, that
was produced by a locally patched gcc, but is not relevant to this bug).