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

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

commit r11-7107-gce5720447c69286599b96bae53ae854b1bbe41fa
Author: Martin Sebor <mse...@redhat.com>
Date:   Thu Feb 4 14:50:23 2021 -0700

    PR c/97882 - Segmentation Fault on improper redeclaration of function

    gcc/c/ChangeLog:

            PR c/97882
            * c-decl.c (locate_old_decl): Add type to diagnostic output.
            (diagnose_mismatched_decls): Same.
            (start_function): Introduce temporaries for better readability.
            * c-typeck.c (comptypes_internal): Only consider complete enum
            types in comparisons with integers.

    gcc/testsuite/ChangeLog:

            PR c/97882
            * gcc.dg/decl-8.c: Adjust text of expected diagnostic.
            * gcc.dg/label-decl-4.c: Same.
            * gcc.dg/mismatch-decl-1.c: Same.
            * gcc.dg/old-style-then-proto-1.c: Same.
            * gcc.dg/parm-mismatch-1.c: Same.
            * gcc.dg/pr35445.c: Same.
            * gcc.dg/redecl-11.c: Same.
            * gcc.dg/redecl-12.c: Same.
            * gcc.dg/redecl-13.c: Same.
            * gcc.dg/redecl-15.c: Same.
            * gcc.dg/tls/thr-init-1.c: Same.
            * objc.dg/id-1.m: Same.
            * objc.dg/tls/diag-3.m: Same.
            * gcc.dg/pr97882.c: New test.
            * gcc.dg/qual-return-7.c: New test.
            * gcc.dg/qual-return-8.c: New test.

Reply via email to