https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120044
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org, | |jamborm at gcc dot gnu.org Priority|P3 |P2 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Looks like IPA CP + SRA and the resulting replacements during inlining end up writing to the const 'c' somehow: int main () { struct a e; const int g$b; char _3; int _4; short unsigned int _5; int _6; <bb 2> [local count: 1073741824]: g$b_2 = 0; _3 = (char) g$b_2; _4 = (int) _3; c.b = g$b_2; e = c;