https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96320
--- Comment #13 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- With the attached patch I get several ICEs: (lldb) run /opt/gcc/work/gcc/testsuite/gfortran.dg/asan/pointer_assign_16.f90 Process 88073 launched: '/opt/gcc/gcc11w/libexec/gcc/x86_64-apple-darwin19.5.0/11.0.0/f951' (x86_64) Process 88073 stopped * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x58) frame #0: 0x000000010004f9e7 f951`gfc_check_dummy_characteristics(s1=0x00000001453175e0, s2=0x00000001453175e0, type_must_agree=<unavailable>, errmsg="\b\x02???, err_len=200) at interface.c:1469:7 1466 int i, compval; 1467 gfc_expr *shape1, *shape2; 1468 -> 1469 if (s1->ns->proc_name->attr.module_procedure 1470 && s1->as->type == AS_ASSUMED_SHAPE 1471 && s2->as->type == AS_DEFERRED) 1472 {