re PR middle-end/83185 (ICE with -fsanitize=address in build_simple_mem_ref_loc,...
authorJakub Jelinek <jakub@redhat.com>
Wed, 29 Nov 2017 10:33:06 +0000 (11:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 29 Nov 2017 10:33:06 +0000 (11:33 +0100)
commit65d5e454e5944531df80d0a9b5dcf2344c146fb8
tree12c33166e506675dec27298801f05e723e4ccaed
parentcedd8ca58336b0c5b061b3c03c0a646fe08b616c
re PR middle-end/83185 (ICE with -fsanitize=address in build_simple_mem_ref_loc, at tree.c:4696)

PR middle-end/83185
* tree.c (build_simple_mem_ref_loc): Handle
get_addr_base_and_unit_offset returning a MEM_REF.

* gcc.dg/asan/pr83185.c: New test.

From-SVN: r255229
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/pr83185.c [new file with mode: 0644]
gcc/tree.c