[C++ Patch] PR 15867
Paolo Carlini
paolo.carlini@oracle.com
Mon Jan 2 22:26:00 GMT 2012
Hi,
another old PR, about -Wredundant-decls (not in -Wall, nor in -Wextra,
thus safe bootstrap-wise).
The issue is that we are emitting a bogus warning for a declaration
followed by a specialization. The fix seems easy, just check !
DECL_TEMPLATE_SPECIALIZATION on newdecl; then however, don't miss
redundant declarations for the specialization itself, thus the OR with
DECL_TEMPLATE_SPECIALIZATION on olddecl. The testcase checks both
situations.
Tested x86_64-linux.
Thanks,
Paolo.
////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_15867
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120102/d0b3d38e/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_15867
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120102/d0b3d38e/attachment-0001.ksh>
More information about the Gcc-patches
mailing list