Skip to content

C front-end: anonymous struct/union members need not be of struct/union type #5603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 16, 2020

Conversation

tautschnig
Copy link
Collaborator

A struct or union can contain anonymous members of any type. Code uses
those to ensure a particular layout. Make sure that recursive member
look-up does not try to recurse into types other structs or unions.

  • Each commit message has a non-empty body, explaining why the change was made.
  • n/a Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • n/a The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@tautschnig tautschnig added bugfix C Front End aws Bugs or features of importance to AWS CBMC users labels Nov 16, 2020
…on type

A struct or union can contain anonymous members of any type. Code uses
those to ensure a particular layout. Make sure that recursive member
look-up does not try to recurse into types other structs or unions.
@codecov
Copy link

codecov bot commented Nov 16, 2020

Codecov Report

Merging #5603 (f9c7e22) into develop (dcf92fe) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #5603   +/-   ##
========================================
  Coverage    69.33%   69.33%           
========================================
  Files         1242     1242           
  Lines       100412   100413    +1     
========================================
+ Hits         69616    69617    +1     
  Misses       30796    30796           
Flag Coverage Δ
cproversmt2 43.10% <0.00%> (-0.01%) ⬇️
regression 66.22% <100.00%> (+<0.01%) ⬆️
unit 32.26% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/ansi-c/anonymous_member.cpp 92.30% <100.00%> (+0.30%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dcf92fe...f9c7e22. Read the comment docs.

@tautschnig tautschnig merged commit b56cb69 into diffblue:develop Nov 16, 2020
@tautschnig tautschnig deleted the anonymous-members branch November 16, 2020 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws Bugs or features of importance to AWS CBMC users bugfix C Front End
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants