https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96063

--- Comment #12 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:6f9c9ea40a1e937ea1b549625cf7762d4a8a2078

commit r11-1899-g6f9c9ea40a1e937ea1b549625cf7762d4a8a2078
Author: Martin Sebor <mse...@redhat.com>
Date:   Tue Jul 7 11:23:50 2020 -0600

    Avoid printing informational notes when -Wmismatched-tags is suppressed in
system headers (PR c++/96063)

    Related:
    PR c++/96063 - mismatched-tags warnings in stdlib headers

    gcc/cp/ChangeLog:

            PR c++/96063
            * parser.c (class_decl_loc_t::diag_mismatched_tags): Print notes
only
            if warning_at returns nonzero.

    gcc/testsuite/ChangeLog:

            PR c++/96063
            * g++.dg/warn/Wmismatched-tags-7.C: New test.
            * g++.dg/warn/Wmismatched-tags-8.C: New test.

Reply via email to