Skip to content

Conversation

@degawa
Copy link
Contributor

@degawa degawa commented Apr 25, 2023

Based on issue #704, I added a presence check for the optional argument exists in get_other_open_data to fix the access violation due to assignment to an optional variable that was not presented.

The tasks done are summarized as follows:

  • Fixed stdlib_hashmap_open.f90.
  • Built using gfortran 11.2 bundled with quickstart Fortran on Windows 10 with cmake 3.20.3.
  • Executed cmake --build build --target test to run the tests and confirmed all tests passed.
  • Executed examples below that were using the open_hashmap_type and confirmed those finished successfully.
    • example_hashmaps_entries.f90
    • example_hashmaps_loading.f90
    • example_hashmaps_rehash.f90
    • example_hashmaps_remove.f90
    • example_hashmaps_set_other_data.f90

closes #704

Copy link
Member

@jvdp1 jvdp1 left a comment

Choose a reason for hiding this comment

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

Thank you @degawa for this fix.

@jvdp1 jvdp1 merged commit b76075a into fortran-lang:master May 4, 2023
@degawa degawa deleted the fix-open_hashmap_type-access-violation branch May 7, 2023 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants