[qfcc] Catch use of missing superclass interfaces

This commit is contained in:
Bill Currie 2020-03-05 08:50:29 +09:00
parent 896c14f33a
commit efcbbbb641

View file

@ -1630,6 +1630,10 @@ class_with_super
new_class_with_super new_class_with_super
: new_class_name ':' class_name : new_class_name ':' class_name
{ {
if (!$3->ivars) {
error (0, "cannot find interface declaration for `%s', "
"superclass of `%s'", $3->name, $1->name);
}
$1->super_class = $3; $1->super_class = $3;
$$ = $1; $$ = $1;
} }