mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 23:29:27 +00:00
Allow initialization of local vars with const-qualified struct or union type.
Here's an example that shows the problem (derived from a csmith-generated test case): void f(void) { const struct S {int i;} s = {1}; }
This commit is contained in:
parent
9b08d4337a
commit
4746d9ff60
@ -3846,6 +3846,8 @@ var
|
||||
|
||||
|
||||
begin {Initialize}
|
||||
while itype^.kind = definedType do
|
||||
itype := itype^.dType;
|
||||
case itype^.kind of
|
||||
|
||||
scalarType,pointerType,enumType,functionType: begin
|
||||
|
Loading…
Reference in New Issue
Block a user