This is the mail archive of the gcc-patches@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]

[C++ Patch] PR 15867


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.

////////////////////

Attachment: CL_15867
Description: Text document

Attachment: patch_15867
Description: Text document


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