This is an archive of the discontinued LLVM Phabricator instance.

[Flang] Allocate character with source returns stat = 0 when already allocated
Needs ReviewPublic

Authored by sankeerth125 on Feb 25 2023, 8:46 AM.
This revision needs review, but all reviewers have resigned.

Details

Reviewers
clementval
Summary

The issue comes from the fact that AllocatableInitCharacter is called before AllocatableAllocateSource and resets the descriptor before the check is done. so made AllocatableInitCharacter called after AllocatableAllocateSource.

Diff Detail

Event Timeline

sankeerth125 created this revision.Feb 25 2023, 8:46 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 25 2023, 8:46 AM
sankeerth125 requested review of this revision.Feb 25 2023, 8:46 AM
clementval requested changes to this revision.Feb 27 2023, 1:36 AM

This is likely not fixing the bug. This has to be called before the actual allocation is done otherwise it has no impact.

This revision now requires changes to proceed.Feb 27 2023, 1:36 AM
clementval resigned from this revision.Mar 20 2023, 9:43 AM
This revision now requires review to proceed.Mar 20 2023, 9:43 AM