analyzer: fix ICE comparing COMPLEX_CSTs [PR97668]
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 5 Nov 2020 14:54:58 +0000 (09:54 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 5 Nov 2020 14:54:58 +0000 (09:54 -0500)
commit54cbdb528df16686290ad26e2130a1896915639d
treee3d96c31bfdadf9e9d0a057e2c5f8b25b432dd17
parentea937e7d8730b4faa18bc67413dbb14567be7390
analyzer: fix ICE comparing COMPLEX_CSTs [PR97668]

gcc/analyzer/ChangeLog:
PR analyzer/97668
* svalue.cc (cmp_cst): Handle COMPLEX_CST.

gcc/testsuite/ChangeLog:
PR analyzer/97668
* gcc.dg/analyzer/pr97668.c: New test.
* gfortran.dg/analyzer/pr97668.f: New test.
gcc/analyzer/svalue.cc
gcc/testsuite/gcc.dg/analyzer/pr97668.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/analyzer/pr97668.f [new file with mode: 0644]