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

--- Comment #5 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:5a9cfad2de92f2d65585774acb524b3fa17621b5

commit r11-6621-g5a9cfad2de92f2d65585774acb524b3fa17621b5
Author: Martin Sebor <mse...@redhat.com>
Date:   Tue Jan 12 12:58:27 2021 -0700

    Avoid a couple more ICEs in print_mem_ref (PR c/98597).

    Resolves:
    PR c/98597 - ICE in -Wuninitialized printing a MEM_REF
    PR c/98592 - ICE in gimple_canonical_types_compatible_p while formatting

    gcc/c-family/ChangeLog:

            PR c/98597
            PR c/98592
            * c-pretty-print.c (print_mem_ref): Avoid assuming MEM_REF operand
            has pointer type.  Remove redundant code.  Avoid calling
            gimple_canonical_types_compatible_p.

    gcc/testsuite/ChangeLog:

            PR c/98597
            PR c/98592
            * g++.dg/warn/Wuninitialized-13.C: New test.
             gcc.dg/uninit-39.c: New test.

            #

Reply via email to