sandbox/bugs/lists2.c

    # Qcc and list iterator may fail

    This is another bug as here

    Note that the bug is triggered by the usage of the x and z point variables.

    scalar a[],b[],c[], *abc = {a,b,c};
    
    int main() {
      init_grid (N);
      foreach() {
        for (scalar s in abc) {
          //s[]; // <- Uncomment to fix
    unused variable ‘dummy’ [-Wunused-variable]
          double dummy = interpolate_linear (point, s, x, y, z);
        }
      }
    }