Skip to content

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