http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55060
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-10-24 19:18:51 UTC --- This doesn't warn, so it seems there is something else going on apart from SRA. static void b(int p) { } int main(int argc, char *argv[]) { int i; b(i); return 0; } Moving a(&i) after b(i) also prevents the warning. Weird.