Skip to content
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

Better testing through more robust construction and destruction #37

Merged
merged 6 commits into from
Sep 18, 2022

Conversation

rouson
Copy link
Member

@rouson rouson commented Sep 18, 2022

Check allocation status before allocating inside the object_t() constructor or deallocating inside the free procedure.

With gfortran, a copy of a reference defined via an association
with a constructor result passes.  A copy of a reference named in
a declaration fails.
Check allocation status before allocating or deallocating an
object_t object.
@rouson rouson marked this pull request as ready for review September 18, 2022 23:38
@rouson rouson merged commit 974ebeb into main Sep 18, 2022
@rouson rouson deleted the robust-construction-destruction branch September 18, 2022 23:52
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.

1 participant