[PATCH] diagnose specializations of deprecated templates (PR c++/84318)

Martin Sebor msebor@gmail.com
Mon Feb 12 23:33:00 GMT 2018


While testing my fix for 83871 (handling attributes on explicit
specializations) I noticed another old regression: while GCC 4.4
would diagnose declarations of explicit soecializations of all
primary templates declared deprecated, GCC 4.5 and later only
diagnose declarations of explicit soecializations of class
templates but not those of function or variable templates.

The root cause of this regression is different than 83871 so I
prefer to fix each separately.  The attached patch does that.
Because there is an opportunity to share code between the two
fixes I expect to integrate one into the other (whichever is
approved/committed last).

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-84318.diff
Type: text/x-patch
Size: 3249 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180212/1aad788d/attachment.bin>


More information about the Gcc-patches mailing list