'int x[];' is a valid compilation unit! See 3.7.2 of ANSI
This commit is contained in:
parent
a2a177de54
commit
30de1bcf3f
|
@ -623,7 +623,12 @@ bss(idf)
|
||||||
}
|
}
|
||||||
#endif /* DBSYMTAB */
|
#endif /* DBSYMTAB */
|
||||||
if (df->df_type->tp_size <= 0) {
|
if (df->df_type->tp_size <= 0) {
|
||||||
error("size of %s unknown (\"%s\", line %d)"
|
if (df->df_sc != STATIC &&
|
||||||
|
df->df_type->tp_fund == ARRAY && df->df_type->next) {
|
||||||
|
C_df_dnam(idf->id_text);
|
||||||
|
C_bss_cst(ATW(df->df_type->next->tp_size), (arith)0, 1);
|
||||||
|
}
|
||||||
|
else error("size of %s unknown (\"%s\", line %d)"
|
||||||
, idf->id_text, df->df_file, df->df_line);
|
, idf->id_text, df->df_file, df->df_line);
|
||||||
} else {
|
} else {
|
||||||
C_df_dnam(idf->id_text);
|
C_df_dnam(idf->id_text);
|
||||||
|
|
Loading…
Reference in a new issue