prevent a voluntary crash and generate better code

This commit is contained in:
ceriel
1988-01-11 14:06:20 +00:00
parent 85348f653d
commit 897b86cba2
2 changed files with 5 additions and 2 deletions

View File

@@ -177,6 +177,7 @@ initializer(struct idf *idf; int sc;)
:
{ if (idf->id_def->df_type->tp_fund == FUNCTION) {
error("illegal initialization of function");
idf->id_def->df_type->tp_fund = ERRONEOUS;
}
}
[