Allocate character with source returns stat = 0 when already allocated
The issue comes from the fact that AllocatableInitCharacter is called before AllocatableAllocateSource and resets the descriptor before the check is done.
program test
character(:), allocatable :: ch
ch = 'dummy'
allocate(ch, stat=istat, source='fail?')
if (istat == 0) then
print*, 'fail to report correct stat'
end if
end program
@llvm/issue-subscribers-flang-ir
@llvm/issue-subscribers-flang-runtime
FYI @peixin Might be a simple enough issue for someone who wants to contribute.
Might be a simple enough issue for someone who wants to contribute.
Agree. More people are welcome to contribute. Thanks @clementval.
@llvm/issue-subscribers-good-first-issue
Hi @clementval, is anyone working on it? if not can I do this?
@sankeerth125 You can take it. I just assigned it to you.
@clementval Thank You
Let me know if anything is unclear
I want to contribute to this issue. Please help me how can I contribute like directory level and all.
There are two patches accepted that solve this so you should look at other issues.
@clementval: Could you please provide commits information?
Fix by 029313cc979ae71877b65794b1063d4e51184cc8 and 52e239794f35be6a68b2273f88a99d9207e77cab