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

Intrinsic random_number not recognised #434

Open
hiker opened this issue Dec 13, 2023 · 1 comment
Open

Intrinsic random_number not recognised #434

hiker opened this issue Dec 13, 2023 · 1 comment
Labels

Comments

@hiker
Copy link
Collaborator

hiker commented Dec 13, 2023

The following code snippet from LFRic (taken from PSyclone's tests/psyad/tl2ad_test.py

real, dimension(npts) :: field
call random_number(field)

does not recognise random_number as an intrinsic. FParser returns it as:

 Call_Stmt(Name('random_number'), Actual_Arg_Spec_List(',', (Name('field'),)))

It should not be a Call_Stmt. I checked - it calls Call_Stmt.match, but not Intrinsic_Name.match.

@hiker hiker added the bug label Dec 13, 2023
@hiker
Copy link
Collaborator Author

hiker commented Dec 15, 2023

date_and_time has the same issue.
As has back_trace.
I'll stop listing them :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant