https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100994
--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > The > MEM[(struct a *)&l].c = l$c_24; > in the function to be inlined is there since esra. Arguably it is strange > that esra stores back into the parameter when it is const. Right, it's a duplicate of PR optimization/100453; SRA should not generate writes into TREE_READONLY objects.