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

Assignment to unallocated arrays fails in flang #211

Closed
aprokop opened this issue Feb 1, 2018 · 1 comment · Fixed by #261
Closed

Assignment to unallocated arrays fails in flang #211

aprokop opened this issue Feb 1, 2018 · 1 comment · Fixed by #261

Comments

@aprokop
Copy link
Collaborator

aprokop commented Feb 1, 2018

   ! FIXME: without these allocation, the test segfaults when compiled with flang
    ! According to [this](https://stackoverflow.com/questions/42140832/automatic-array-allocation-upon-assignment-in-fortran) it
    ! seems that it should be supported in F2003. So it is not clear why flang fails.
    allocate(iarr(10))
    allocate(darr(10))
    iarr = plist%get_arr_integer('intarr')
@sethrj
Copy link
Collaborator

sethrj commented Mar 8, 2018

Interesting, I wonder if this is related to the -Wmaybe-uninitialized warning that shows up in GCC when returning an allocatable string.

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

Successfully merging a pull request may close this issue.

2 participants