https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94997
--- Comment #3 from David Binderman <dcb314 at hotmail dot com> --- (In reply to Martin Sebor from comment #1) > Assuming this is meant to be an enhancement request to add new option to > suggest to make member functions const the same enhancement request has > already been raised in pr80711, so resolving as a dupe. It is an enhancement request, but for one source code file only, not the implementation of the feature in gcc. > (I don't suppose you are just noting that the four instances of the message > below would be solved by marking the functions const. There must be many > more such opportunities in GCC, as well as countless others where const > could be put to good use.) Indeed, all I am doing is noting four places where const could be used. However, cppcheck did look at the general case of all of the source code of the gcc compiler and it found 237 places. I only mentioned four in this bug report, to keep things simple. List attached.