analyzer: fix ICE on RANGE_EXPR with CONSTRUCTOR value [PR96950]
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 7 Sep 2020 21:43:02 +0000 (17:43 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 8 Sep 2020 14:50:12 +0000 (10:50 -0400)
commitaf656c401e97f9de2a8478f18278e8efb2a6cf23
treeb1a98686e304911580f9732d9724c5ca1bc0cef6
parent47997a32e63b77ec88a7131a5d540f108c698661
analyzer: fix ICE on RANGE_EXPR with CONSTRUCTOR value [PR96950]

gcc/analyzer/ChangeLog:
PR analyzer/96950
* store.cc (binding_map::apply_ctor_to_region): Handle RANGE_EXPR
where min_index == max_index.
(binding_map::apply_ctor_val_to_range): Replace assertion that we
don't have a CONSTRUCTOR value with error-handling.
gcc/analyzer/store.cc