[Bug c++/66130] New: "invalid use of non-static member function" message could be clearer
tromey at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 12 16:57:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
Bug ID: 66130
Summary: "invalid use of non-static member function" message
could be clearer
Product: gcc
Version: 4.9.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tromey at gcc dot gnu.org
Target Milestone: ---
Today g++ gave me "invalid use of non-static member function".
However, from the context it was unclear exactly which thing
on the line was the invalid use. (Mostly due to bug 61940 giving
an imprecise location).
I think this warning would be more useful if it mentioned the name
of the member function in question. In my case this would have
made the problem immediately clear.
More information about the Gcc-bugs
mailing list