https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94997
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- After noticing pr94995 (and subsequently also your clarification in comment #3) I see I was wrong in my assumption. While I'm a big fan of const correctness and agree that those functions (and probably many others) could be declared const, I see more overhead than value in reports suggesting these types of improvements to the code base. If you think they're worthwhile to make, just do it. You can submit a patch for review but you don't even need to ask for approval to commit it (see https://www.gnu.org/software/gcc/svnwrite.html#all). OTOH, where I see much more value is in adding features to detect these opportunities and adding them to -Wall (and for those, having reports in Bugzilla is also important).