[flang] Copy attributes and flags onto host-assoc symbols
authorTim Keith <tkeith@nvidia.com>
Mon, 17 Aug 2020 14:00:04 +0000 (07:00 -0700)
committerTim Keith <tkeith@nvidia.com>
Mon, 17 Aug 2020 14:00:07 +0000 (07:00 -0700)
commitd66463eedc5035a4ea4c6085e55405465cca6796
tree018a87e5619f0400b3c7cd68db0efac2e3efac06
parentbc5c9df62182bff1329f04ab47776b0bc70f1e1a
[flang] Copy attributes and flags onto host-assoc symbols

As with use-associated symbols, copy the attributes and flags from the
original symbol onto host-associated symbols when they are created.

This was showing up as an error on a deallocate of a host-associated
name. We reported an error because the symbol didn't have the POINTER
or ALLOCATABLE attribute.

Differential Revision: https://reviews.llvm.org/D85763
flang/lib/Semantics/resolve-names.cpp
flang/test/Semantics/deallocate06.f90 [new file with mode: 0644]
flang/test/Semantics/symbol05.f90
flang/test/Semantics/symbol09.f90