mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-01 13:29:32 +00:00
Allow duplicate typedefs within block scopes (C11).
This commit is contained in:
parent
e168a4d6cb
commit
fa166030fe
@ -2043,7 +2043,8 @@ if space <> fieldListSpace then begin {are we defining a function?}
|
||||
or ((cs^.state = initialized) and (state = initialized))
|
||||
or ((class = typedefsy) <> (cs^.class = typedefsy))
|
||||
or ((globalTable <> table)
|
||||
and ((class <> externsy) or (cs^.class <> externsy))))
|
||||
and (not (class in [externsy,typedefsy])
|
||||
or not (cs^.class in [externsy,typedefsy]))))
|
||||
and ((not doingParameters) or (cs^.state <> declared))
|
||||
then
|
||||
Error(42)
|
||||
|
Loading…
Reference in New Issue
Block a user