[Bug c++/83503] [8 Regression] bogus -Wattributes for const and pure on function template specialization
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 29 20:10:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83503
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
If you mean it as a coding style warning (at least for const/pure), then it is
at least worded incorrectly, there is no conflict between those and if what you
do is that you ignore const attribute because earlier decl had pure attribute,
then regardless of -w/-Wattributes/-Wno-attributes etc. you've undesirably
changed behavior of something that was well defined before.
More information about the Gcc-bugs
mailing list