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

--- 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:0d1b4edc5fff834e8f924b20dd021ded7a21d2d2

commit r11-2953-g0d1b4edc5fff834e8f924b20dd021ded7a21d2d2
Author: David Malcolm <dmalc...@redhat.com>
Date:   Mon Aug 24 09:33:42 2020 -0400

    analyzer: fix ICE on RANGE_EXPR in CONSTRUCTORs [PR96763]

    gcc/analyzer/ChangeLog:
            PR analyzer/96763
            * store.cc (binding_map::apply_ctor_to_region): Handle RANGE_EXPR
            by calling a new binding_map::apply_ctor_val_to_range subroutine.
            Split out the existing non-CONSTRUCTOR-handling code to a new
            apply_ctor_pair_to_child_region subroutine.
            (binding_map::apply_ctor_val_to_range): New.
            (binding_map::apply_ctor_pair_to_child_region): New, split out
            from binding_map::apply_ctor_to_region as noted above.
            * store.h (binding_map::apply_ctor_val_to_range): New decl.
            (binding_map::apply_ctor_pair_to_child_region): New decl.

    gcc/testsuite/ChangeLog:
            PR analyzer/96763
            * g++.dg/analyzer/pr96763.C: New test.

Reply via email to