compile( ) bug



On Wed, 2010-04-21 at 22:34 -0700, Richard Fateman wrote:
> 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

It seems to be a GCL problem, because it works fine for me in 5.20.1
with either CLisp, SBCL or Clozure Lisp.
Regards,
Jaime