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

PR related to #726 and #723 #727

Merged
merged 8 commits into from
Aug 8, 2023
Merged

Conversation

jvdp1
Copy link
Member

@jvdp1 jvdp1 commented Jul 8, 2023

PR opened following the issue reported in #723 and #726 (reported by @degawa )

Fixes #726

src/stdlib_bitsets_large.fypp Outdated Show resolved Hide resolved
src/stdlib_bitsets.fypp Outdated Show resolved Hide resolved
Comment on lines +197 to +198
The module uses the intrinsic assignment operation, `=`, to create a
duplicate of an original bitset. It additionally defines assignments to and
Copy link
Member Author

Choose a reason for hiding this comment

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

@degawa : should we add additional information based on the Discourse thread?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for the late review.

The additional information based on the Discourse thread is optional because the information, like below, is too broad for describing the specification of the bitset assignment:
The user-defined assignment operator causes the self-assignment problem with the argument aliasing; since the type bitset_large and bitset_64 do not have any pointer component, the intrinsic assignment operation should be used.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you.

Copy link
Member Author

Choose a reason for hiding this comment

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

@degawa Could you approve this PR, if ok for you, please? Then I will merge it.

@jvdp1 jvdp1 marked this pull request as ready for review July 22, 2023 17:41
@jvdp1 jvdp1 requested a review from milancurcic July 22, 2023 17:42
Copy link
Contributor

@degawa degawa 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 for your PR for solving the problem related to the assignment operation.
Looks good to me and approve the PR.

@jvdp1
Copy link
Member Author

jvdp1 commented Aug 5, 2023

@milancurcic could you review/approve/merge this PR, please @degawa is not a reviewer with write access and the PR is therefore is still blocked.
#723 depends on this PR too.

@14NGiestas 14NGiestas merged commit 0b00b7b into fortran-lang:master Aug 8, 2023
15 checks passed
@14NGiestas
Copy link
Member

As it's just an removal of a problematic intrinsic assignment overload, it's blocking the development of another PR (3 days), all tests are passing and it fixes the problem I will go ahead to approve and squash-merge.

@jvdp1
Copy link
Member Author

jvdp1 commented Aug 8, 2023

Thank you @14NGiestas for merging it.

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.

A runtime error occurs when assigning a variable of bitset_large
3 participants