https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93804
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>: https://gcc.gnu.org/g:b73547e40e0b2b6621feec59c9cc65312eddbc6d commit r10-6824-gb73547e40e0b2b6621feec59c9cc65312eddbc6d Author: Martin Sebor <mse...@redhat.com> Date: Mon Feb 24 10:14:16 2020 -0700 PR c++/93804 - exempt extern C headers from -Wredundant-tags gcc/cp/ChangeLog: PR c++/93804 * parser.c (cp_parser_check_class_key): Avoid issuing -Wredundant-tags in shared C/C++ code in headers. gcc/testsuite/ChangeLog: PR c++/93804 * g++.dg/warn/Wredundant-tags-4.C: New test. * g++.dg/warn/Wredundant-tags-5.C: New test. * g++.dg/warn/Wredundant-tags-5.h: New test.