-
Notifications
You must be signed in to change notification settings - Fork 284
Fix use of equality of value_sett::object_mapt #4705
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
Fix use of equality of value_sett::object_mapt #4705
Conversation
smowton
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is a fix for #4699 ? If so, note that in the commit message and add a comment that this is a pointless specialisation of https://github.com/diffblue/cbmc/blob/develop/src/util/reference_counting.h#L185 which we supply to tolerate old broken compilers.
8a4fc26 to
d3d95fe
Compare
d3d95fe to
194eeef
Compare
Yes, I have added that to the commit message. I also changed a bit the code so that we don't redefine the equality function. |
|
Shame to throw away the reference-equal case though? If you're going to inline |
194eeef to
8cd09b3
Compare
allredj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: 8cd09b3).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/113132139
this is now fixed |
smowton
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment noting that this is a copy of (link to reference_countingt::operator==) and noting why this was done
The explicit definition of object_mapt equality was removed recently in pull request diffblue#4694 but it seems necessary when compiling with clang which would complain about it not being defined. Should fix diffblue#4699
8cd09b3 to
b27ceb9
Compare
|
We're fixing something for clang 3.8, but we're not compiling with clang 3.8 on CI. So this (or something similar) will probably break later and we'll waste more time. Should we not add another build on CI? |
allredj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: b27ceb9).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/113404218
This was removed recently in pull request #4694 but it
seems necessary when compiling with clang which would complain about it
not being defined.