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

--- Comment #18 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Martin Sebor
<mse...@gcc.gnu.org>:

https://gcc.gnu.org/g:5e4c9ebbab7bec3b5994f85aebce13bf37cf46e9

commit r10-8471-g5e4c9ebbab7bec3b5994f85aebce13bf37cf46e9
Author: Martin Sebor <mse...@redhat.com>
Date:   Mon Jul 13 09:32:40 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