http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59029
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Yury Gribov from comment #2) > Created attachment 31177 [details] > Draft patch > > Aha, looks like the ICE is caused by destination address being INTEGER_CST > instead of ADDR_EXPR. Attached patch seems to fix this (tested on x86_64). > > @Volker: could you add your testcase to Asan testsuite? Patch preapproved with the testcase and correct ChangeLog, just add /* { dg-do compile } */ int foo () { return __sync_fetch_and_add ((int *) 0, 1); } to testsuite/c-c++-common/asan/pr59029.c ?