https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80711
--- Comment #5 from David Binderman <dcb314 at hotmail dot com> --- (In reply to Martin Sebor from comment #3) > There is a warning like that in the middle-end: -Wsuggest-attribute=pure. Whether a function is pure is a slightly different thing to whether it is a C++ const member function. I did a test build of current gcc with the warning flag and libgomp has Werror set, so that prevents a full build. However, for the partial build I did, the warning was produced about 160 times. Is it worth mentioning that pure functions are a GNU only extension but const member functions are full ISO C++ ?