[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
1 changed files with 4 additions and 0 deletions

View File

@ -1630,6 +1630,10 @@ class_with_super
new_class_with_super
: 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;
}