Fixed scope bug for structures: a(struct S *p) { struct S { int i; }; p->i ...
should work
This commit is contained in:
parent
6b7fcb5a8c
commit
dbf212f30a
@ -188,7 +188,10 @@ declare_struct(fund, idf, tpp)
|
||||
if (tg
|
||||
&& tg->tg_type->tp_size < 0
|
||||
&& tg->tg_type->tp_fund == fund
|
||||
&& tg->tg_level == level) {
|
||||
&& (tg->tg_level == level
|
||||
|| (level >= L_FORMAL2
|
||||
&& level <= L_LOCAL
|
||||
&& tg->tg_level == L_FORMAL2))) {
|
||||
/* An unfinished declaration has preceded it.
|
||||
We just fill in the answer.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user