Skip to content

Fix scope of enum definition in return type#113

Merged
sim642 merged 3 commits intodevelopfrom
return-enum-scope
Sep 16, 2022
Merged

Fix scope of enum definition in return type#113
sim642 merged 3 commits intodevelopfrom
return-enum-scope

Conversation

@sim642
Copy link
Copy Markdown
Member

@sim642 sim642 commented Sep 9, 2022

Closes #112.

Just moves enterScope and a bunch of other things after doSpecList inside which the return type is handled. Apparently definitions inside that are still in the outer (global) scope according to the standard.

Also removes Cabs2cil.varSizeArrays, which was never added to, so it was always empty anyway.

This fixes parsing of curl and masscan.

@sim642 sim642 added the bug label Sep 9, 2022
Copy link
Copy Markdown
Member

@michael-schwarz michael-schwarz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cabs2cil.varSizeArrays was a leftover from #7 that was not cleaned up properly.

@sim642 sim642 merged commit d4724fe into develop Sep 16, 2022
@sim642 sim642 deleted the return-enum-scope branch September 16, 2022 16:34
@sim642 sim642 added this to the 2.0.1 milestone Nov 21, 2022
sim642 added a commit to sim642/opam-repository that referenced this pull request Nov 23, 2022
CHANGES:

* Fix scope of enum definition in return type (goblint/cil#112, goblint/cil#113).
* Fix signed integer left shift constant folding overflow (goblint/cil#122, goblint/cil#123).
* Fix `fitsInInt` for booleans (goblint/cil#111).
* Mark more loop statement locations synthetic (goblint/cil#125).
* Optimize integer truncation (goblint/cil#115).
* Fix FrontC and Cabs2cil partial application (goblint/cil#116).
* Fix external usage of `freshLabel` (goblint/cil#121).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot resolve values of anonymous enum defined in another function return type

2 participants