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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalc...@gcc.gnu.org>:

https://gcc.gnu.org/g:41faa1d7beb90b235858c8a692be926642ad5559

commit r13-4710-g41faa1d7beb90b235858c8a692be926642ad5559
Author: David Malcolm <dmalc...@redhat.com>
Date:   Wed Dec 14 16:03:30 2022 -0500

    analyzer: don't call binding_key::make on empty regions [PR108065]

    gcc/analyzer/ChangeLog:
            PR analyzer/108065
            * region.cc (decl_region::get_svalue_for_initializer): Bail out to
            avoid calling binding_key::make with an empty region.
            * store.cc (binding_map::apply_ctor_val_to_range): Likewise.
            (binding_map::apply_ctor_pair_to_child_region): Likewise.
            (binding_cluster::bind): Likewise.
            (binding_cluster::purge_region): Likewise.
            (binding_cluster::maybe_get_compound_binding): Likewise.
            (binding_cluster::maybe_get_simple_value): Likewise.

    gcc/testsuite/ChangeLog:
            PR analyzer/108065
            * gfortran.dg/analyzer/pr108065.f90: New test.

    Signed-off-by: David Malcolm <dmalc...@redhat.com>

Reply via email to