http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55529
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> 2012-11-29 13:19:17 UTC --- I think the problem would be if we'd warn on this (rcu_num_lvls is static). Otherwise rcu_num_lvls can me modified from elsewhere, no? int *level[1]; static int rcu_num_lvls; void fn1 () { int i; for (i = 1; i < rcu_num_lvls; i++) level[i] = level[i - 1]; }