This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/83503] [8 Regression] bogus -Wattributes for const and pure on function template specialization
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 Jan 2018 20:10:25 +0000
- Subject: [Bug c++/83503] [8 Regression] bogus -Wattributes for const and pure on function template specialization
- Auto-submitted: auto-generated
- References: <bug-83503-4@http.gcc.gnu.org/bugzilla/>
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.