fixed some bugs:

- switch with BIG difference between lower and upper now handled correctly
- made sure an added error production is never chosen as the default one
- don't allow AUTO as specification for a parameter
This commit is contained in:
ceriel
1987-10-05 10:17:44 +00:00
parent 8fb2664584
commit efcb9468f4
7 changed files with 25 additions and 10 deletions

View File

@@ -40,7 +40,7 @@ do_decspecs(ds)
}
if (level == L_FORMAL2) {
if (ds->ds_sc_given && ds->ds_sc != AUTO &&
if (ds->ds_sc_given &&
ds->ds_sc != REGISTER){
extern char *symbol2str();
error("%s formal illegal", symbol2str(ds->ds_sc));