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

Inconsistent parse tree for allocate statements #383

Open
arporter opened this issue Nov 17, 2022 · 1 comment
Open

Inconsistent parse tree for allocate statements #383

arporter opened this issue Nov 17, 2022 · 1 comment
Labels

Comments

@arporter
Copy link
Member

allocate(grid%data(ndof))

gives:

Allocation(Data_Ref('%', (Name('grid'), Name('data'))), Allocate_Shape_Spec_List(',', (Allocate_Shape_Spec(None, Name('ndof')),)))

while

allocate(grid%coords, mold=grid%data)

gives:

Data_Ref('%', (Name('grid'), Name('coords')))

My reading of the standard is that both of these cases should give an Allocation object whereas the second one gives a bare Data_Ref. I suspect the parse tree should be:

Allocation(Data_Ref('%', (Name('grid'), Name('data'))), )
@arporter arporter added the bug label Nov 17, 2022
@arporter
Copy link
Member Author


image

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