sandbox/bugs/args-stencil.c
Incompatible arguments in _stencil_function
This test reports a compilation issue for functions with pre-defined inputs.
The error disappears when:
- We provide all inputs to the function call:
foo (point, f, true); - We do not use the scalar
fin a function: commentingtest()it works.
double test (double val) {
return val;
}double foo (Point point, scalar f, bool vof = true) {
test (f[]);
return 1.;
}
scalar f[];
int main (void) {
init_grid (1 << 5);
foreach()
incompatible type for argument 2 of ’_stencil_foo’
foo (point, f);
}
