This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/83503] [8 Regression] bogus -Wattributes for const and pure on function template specialization


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]