g(x):=is(x>10); f(x):=if g(x) then 1 else 2; f(11); works ... but compile(f); f(11); crashes with "the variable $g is unbound" on GCL maxima 5.20.1