llvm/flang/lib
Tim Keith b2f84a5eda [flang] More coarray name resolution and semantic checks
Add CoarrayChecker to check for valid team-value in CHANGE TEAM,
SYNC TEAM, and image selector. Check that coarray names and selector
names are distinct in CHANGE TEAM.

Resolve the variable in a coarray-association.
Create a scope for the construct entities of a CHANGE TEAM construct.

Add ResolveSelector to resolve a parser::Selector into an Expr and
optional variable name (and a source location for messages). Make use of
ResolveSelector to handle coarray-association, as well as it's previous
use in associate-stmt.

Improve the check for C1157 in select-type-stmt and add a test.

Add a test for "Associate name must have a type".

Move ResolveName, ResolveDataRef, etc. from ResolveNamesVisitor
to DeclarationVisitor so that they are available in ConstructVisitor
as well. Add ResolveVariable and ResolveDesignator.

In the parse tree, change TeamValue from a type alias to a wrapper
class. We already had a wrapper class anyway, ImageSelectorSpec::Team,
so the new TeamValue can be used instead. This allows the member
of ImageSelectorSpec to be treated like other occurrences of TeamValue.

Original-commit: flang-compiler/f18@f856744b54
Reviewed-on: https://github.com/flang-compiler/f18/pull/414
Tree-same-pre-rewrite: false
2019-04-15 14:07:11 -07:00
..
common [flang] pass all tests 2019-04-15 09:41:50 -07:00
evaluate [flang] pass all tests 2019-04-15 09:41:50 -07:00
FIR [flang] tweak comment 2019-04-12 10:22:09 -07:00
parser [flang] More coarray name resolution and semantic checks 2019-04-15 14:07:11 -07:00
semantics [flang] More coarray name resolution and semantic checks 2019-04-15 14:07:11 -07:00
CMakeLists.txt [flang] Move over build recipes and rename the library 2019-03-11 08:56:36 -07:00