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

Dealing with inconstencies between compilers #446

Closed
awvwgk opened this issue Jun 26, 2021 · 4 comments
Closed

Dealing with inconstencies between compilers #446

awvwgk opened this issue Jun 26, 2021 · 4 comments

Comments

@awvwgk
Copy link
Member

awvwgk commented Jun 26, 2021

This came up in #444, when trying to create failing tests for a function to wrap internal IO, like printing an integer value with a real format descriptor or a logical with an integer format descriptor.

The initial failing tests were created with gfortran, somewhat surprisingly ifort is particular smart about a lot of cases and implicitly casts the integer to a real before formatting it. What would be the best strategy to deal with such inconsistencies between different compilers?

@arjenmarkus
Copy link
Member

arjenmarkus commented Jun 28, 2021 via email

@awvwgk
Copy link
Member Author

awvwgk commented Jun 28, 2021

@arjenmarkus Such options might change the ABI (like ifort -standard-semantics) and make stdlib more difficult to use in projects not using such options.

@arjenmarkus
Copy link
Member

arjenmarkus commented Jun 28, 2021 via email

@awvwgk
Copy link
Member Author

awvwgk commented Sep 18, 2021

For this particular case the compilers are in fact free to implement their own solution without constraints from the standard, in this case I think we should not/cannot do anything.

@awvwgk awvwgk closed this as completed Sep 18, 2021
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

No branches or pull requests

2 participants