File tree 2 files changed +8
-3
lines changed
regression/cbmc/Struct_Initialization1
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
- KNOWNBUG
1
+ CORE
2
2
main.c
3
3
4
4
^EXIT=0$
Original file line number Diff line number Diff line change @@ -663,10 +663,15 @@ void c_typecheck_baset::increment_designator(designatort &designator)
663
663
assert (components.size ()==entry.size );
664
664
665
665
// we skip over any padding or code
666
- while (entry.index <entry.size &&
666
+ // we also skip over anonymous members
667
+ while (entry.index < entry.size &&
667
668
(components[entry.index ].get_is_padding () ||
668
- components[entry.index ].type ().id ()==ID_code))
669
+ (components[entry.index ].get_anonymous () &&
670
+ components[entry.index ].type ().id () != ID_struct_tag) ||
671
+ components[entry.index ].type ().id () == ID_code))
672
+ {
669
673
entry.index ++;
674
+ }
670
675
671
676
if (entry.index <entry.size )
672
677
entry.subtype =components[entry.index ].type ();
You can’t perform that action at this time.
0 commit comments