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

Implement intrinsic logical #3690

Open
HarshitaKalani opened this issue Mar 22, 2024 · 2 comments · May be fixed by #3691
Open

Implement intrinsic logical #3690

HarshitaKalani opened this issue Mar 22, 2024 · 2 comments · May be fixed by #3691
Labels
easy to fix Easy to fix issue (good first issue for a new contributor) good first issue Good for newcomers

Comments

@HarshitaKalani
Copy link
Contributor

program main
    print*, logical(.true., 8)
end
$ gfortran x.f90 && ./a.out
 T
(lf) harshita@harshita-linux:~/Desktop/lfortran$ lfortran x.f90
semantic error: Function 'logical' not found or not implemented yet (if it is intrinsic)
 --> x.f90:2:13
  |
2 |     print*, logical(.true., 8)
  |             ^^^^^^^^^^^^^^^^^^ 


Note: Please report unclear or confusing messages as bugs at
https://github.com/lfortran/lfortran/issues.

Refer: https://gcc.gnu.org/onlinedocs/gfortran/LOGICAL.html

@HarshitaKalani HarshitaKalani added good first issue Good for newcomers easy to fix Easy to fix issue (good first issue for a new contributor) labels Mar 22, 2024
@shivimathur
Copy link
Contributor

I would like to work on this.

@shivimathur shivimathur linked a pull request Mar 22, 2024 that will close this issue
@gxyd
Copy link
Contributor

gxyd commented Mar 22, 2024

I guess, we can have logical intrinsic, but it wouldn't do what logical intrinsic is supposed to do, as we don't support logical's of different kind's just yet: #3486.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy to fix Easy to fix issue (good first issue for a new contributor) good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants