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

--- Comment #9 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:abb1b6058c09a7c0430d9bf019466ada07ca7b40

commit r11-6508-gabb1b6058c09a7c0430d9bf019466ada07ca7b40
Author: Martin Sebor <mse...@redhat.com>
Date:   Wed Jan 6 13:44:27 2021 -0700

    PR c++/95768 - pretty-printer ICE on -Wuninitialized with allocated storage

    gcc/c-family/ChangeLog:

            PR c++/95768
            * c-pretty-print.c (c_pretty_printer::primary_expression): For
            SSA_NAMEs print VLA names and GIMPLE defining statements.
            (print_mem_ref): New function.
            (c_pretty_printer::unary_expression): Call it.

    gcc/cp/ChangeLog:

            PR c++/95768
            * error.c (dump_expr): Call c_pretty_printer::unary_expression.

    gcc/testsuite/ChangeLog:

            PR c++/95768
            * g++.dg/pr95768.C: New test.
            * g++.dg/warn/Wuninitialized-12.C: New test.
            * gcc.dg/uninit-38.c: New test.

Reply via email to