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: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Jan 2018 19:06:14 +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
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