https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83503
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |83871 --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- Strictly speaking the warning is incorrect. But because GCC doesn't distinguish between declarations of the primary template and those of its explicit specializations (see bug 83871), the warning just reflects this. It should clear up once bug 83871 has been fixed. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83871 [Bug 83871] wrong code for attribute const and pure on distinct template specializations