Skip to content

Fix PR #220 Regression - Urgent #256

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 3 commits into from
Jun 14, 2019

Conversation

tjj2017
Copy link
Collaborator

@tjj2017 tjj2017 commented Jun 14, 2019

PR #220 introduced a regression. It entered subprogram parameters into
the symbol table before processing their declaration causing the
processing of a subprogram specification to fail.

The fault was found by the regression caused to PR #245 but could could happen if a subprogram body was declared without a separate declaration (perfectly legal to do this in Ada).

The problem of symbols missing from the symbol that PR #220 was designed to fix was due to not processing a subprogram's specification prior to processing its body, if it had no separate declaration.

This change removes the code from PR 220 and ensures a
subprogram specification is processed before its body.

I have run the regression tests on this branch and the results as for the main branch and as best I can tell the golden results are not significantly different, the summaries being identical.

PR 220 introduced a regression.  It entered subprogram parameters into
the symbol table before processing their declaration causing the
processing of a subprogram specification to fail.
This could happen if a subprogram body was declared without a
separate declaration (perfectly legal to do this in Ada).

This change removes the code from PR 220 and ensures a
subprogram specification is processed before its body.
Copy link
Contributor

@xbauch xbauch left a comment

Choose a reason for hiding this comment

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

Looks good (and sorry about the regression in the first place).

Copy link
Contributor

@chrisr-diffblue chrisr-diffblue left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for tracking this down! Golden results files will need to be updated before CI passes - just let us know if you need a hand getting those generated.

@tjj2017
Copy link
Collaborator Author

tjj2017 commented Jun 14, 2019

I have updated the golden results

@martin-cs martin-cs mentioned this pull request Jun 14, 2019
@tjj2017 tjj2017 force-pushed the fix_pr220_regression branch from 248e0de to 5d2e7c5 Compare June 14, 2019 14:42
@chrisr-diffblue chrisr-diffblue merged commit a1cbc0f into diffblue:master Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants