sandbox/bugs/lists3.c

    Qcc and list iterator may fail

    ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]
    scalar a[], b[], c[], * abc = {a, b, c};;
    
    int main() {
      init_grid (N);
      foreach() { //adding `noauto` is ok. 
        scalar s;
        for (s in abc) {
          printf ("%s", s.name);
        }
      }
    }

    See similar old bugs