[flang] Fix bug with host-association in module procedure interface body
authorTim Keith <tkeith@nvidia.com>
Tue, 26 Feb 2019 22:52:39 +0000 (14:52 -0800)
committerGitHub <noreply@github.com>
Thu, 28 Feb 2019 18:38:17 +0000 (10:38 -0800)
commitebcfd01ae37e240380911fd184946cabfa520464
tree2d84fdd1c044496cfe97764283df7f89c379213e
parent0b9621b635d623c5c30fc67993b671d9afa5d076
[flang] Fix bug with host-association in module procedure interface body

A module procedure interface body can access entities in its host
without an IMPORT statement. So the `ImportKind` of the scope created
for such an interface body should be `Default`, not `None` as it is
for other interface bodies.

Original-commit: flang-compiler/f18@24bb2668fdb626a4df76719345b02e533d015d79
Reviewed-on: https://github.com/flang-compiler/f18/pull/305
Tree-same-pre-rewrite: false
flang/lib/semantics/scope.cc
flang/test/semantics/symbol02.f90