Looks like something has set Pike_compiler->new_program to NULL.
New attempt at fixing committed.
$ pike -e "foo::bar = 1;" -:2:No inherit or surrounding class foo. Compilation failed.
Cheers!
Great.
Now please fix the testsuite falures caused by the Stdio.FakePipe changes.
/grubba