Compat mode doesn't work for inherited files.
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2504
Reported by Stefan Wallström stewa@lysator.liu.se
Inherited files aren't compiled in compat mode (i.e. starting pike with "pike -V7.0").
Removing these lines from program.c:change_compiler_compatibility seems to do the trick.
if(major == Pike_compiler->compat_major &&
minor == Pike_compiler->compat_minor) {
if (compat_handler) {
add_ref(compat_handler);
}
return;
}