[flang] Allow compiler directives in more places
authorTim Keith <tkeith@nvidia.com>
Tue, 11 Aug 2020 15:37:23 +0000 (08:37 -0700)
committerTim Keith <tkeith@nvidia.com>
Tue, 11 Aug 2020 15:37:27 +0000 (08:37 -0700)
commitcf715717aa8cb17d98177af3ce63c7e20e8d25a3
treee2c506a99e163d95b285f723735dce2d2aa2e1b2
parentaa994d9867e38ad12a5d43edcfb8d53a26b73020
[flang] Allow compiler directives in more places

Allow compiler directives in the implicit-part and before USE statements
in the specification-part.

Differential Revision: https://reviews.llvm.org/D85693
flang/include/flang/Parser/parse-tree.h
flang/lib/Parser/Fortran-parsers.cpp
flang/lib/Parser/program-parsers.cpp
flang/lib/Semantics/resolve-names.cpp
flang/test/Parser/compiler-directives.f90 [new file with mode: 0644]