forked from lfortran/lfortran
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enable data implied do #3
Draft
konradha
wants to merge
10
commits into
main
Choose a base branch
from
enable-data-implied-do
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7c91ddf
initial exploratory commit
konradha f3fc0d8
progress commit
konradha f838c8e
some cleaning up before full implementation runs
konradha 776fd02
add algorithmic exploration
konradha 31638c0
Merge remote-tracking branch 'gh-main/main' into enable-data-implied-do
konradha 4f52f43
add more exploration
konradha ecfc87f
more exploration
konradha 5cdd13a
uncover one more bug
konradha 208f404
Merge remote-tracking branch 'gh-main/main' into enable-data-implied-do
konradha 6202f72
progress update
konradha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
subroutine dt1() | ||
double precision coef(5,4) | ||
|
||
double precision coef2(5, 4, 4) | ||
|
||
!DATA (coef(i,1),i=1,5)/1.0D0,1.0D0,3*0.0D0/ | ||
!DATA (coef(i,1),i=1,5)/1.0D0,1.0D0,0.0D0,0.0D0, 0.0D0/ | ||
! invalid: no actual expression as factors, only constants -- DATA (coef(i,1),i=1,5)/(1+1)*0.0D0, 1*1.0D0, 2*2.0D0/ | ||
! invalid (error case): DATA (coef(J,1),i=1,5)/2*0.0D0, 1*1.0D0, 2*2.0D0/ | ||
! the below is valid, too: | ||
!double precision coef(5,5) | ||
!DATA (coef(i,i),i=1,5)/2*0.0D0, 1*1.0D0, 2*2.0D0/ | ||
|
||
! endboss: DATA ( W(I,1), X(I,1), I = 1,3) / ... | ||
!DATA (coef(i,1),coef2(i, 2, 2),i=1,5)/2*0.0D0, 1*1.0D0, 2*2.0D0, 2 | ||
!* *0.0D0, 1*1.0D0, 2*2.0D0/ | ||
|
||
integer i | ||
!DATA (coef(i,1),i=1,5)/2*0.0D0, 1*1.0D0, 2*2.0D0/ | ||
!DATA (coef(i,1),i=1,5)/0.0D0, 0.0D0, 1.0D0, 2.0D0, 2.0D0/ | ||
DATA (coef(i,1),i=1,1)/0.0D0/ | ||
|
||
do i=1,5 | ||
print *, coef(i, 1) | ||
end do | ||
END | ||
|
||
|
||
program main | ||
call dt1() | ||
end program |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO, we should use full type name instead of
auto
. I prefer verbosity over ease of typing.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really care about ease of typing, it's much more easy to read I think. But sure, I'll change it once I actually open a PR.