Skip to content

Changed number of expected arguments for intrinsic function IBITS to 3#241

Merged
rupertford merged 1 commit intostfc:masterfrom
reuterbal:ibits_arg_count
Feb 6, 2020
Merged

Changed number of expected arguments for intrinsic function IBITS to 3#241
rupertford merged 1 commit intostfc:masterfrom
reuterbal:ibits_arg_count

Conversation

@reuterbal
Copy link

Intrinsic function IBITS(I, POS, LEN) should expect exactly 3 arguments, fparser required it to have exactly 2.

Reference: https://j3-fortran.org/doc/year/04/04-007.pdf#page=312
Page 312, Line 24

@codecov-io
Copy link

Codecov Report

Merging #241 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #241   +/-   ##
=======================================
  Coverage   90.21%   90.21%           
=======================================
  Files          34       34           
  Lines       12108    12108           
=======================================
  Hits        10923    10923           
  Misses       1185     1185
Impacted Files Coverage Δ
src/fparser/two/Fortran2003.py 92.48% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8807da6...a40f709. Read the comment docs.

Copy link
Collaborator

@rupertford rupertford left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this. I confirm that the standard specifies 3 arguments. We don't explicitly test the number of arguments of individual intrinsics so there is no need to update any tests.

@rupertford rupertford added ready for merge PR is waiting on final CI checks before being merged. and removed under review labels Feb 6, 2020
@rupertford rupertford merged commit 3649dbf into stfc:master Feb 6, 2020
rupertford added a commit that referenced this pull request Feb 6, 2020
@reuterbal reuterbal deleted the ibits_arg_count branch February 7, 2020 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for merge PR is waiting on final CI checks before being merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants