llvm/flang/test
Tim Keith 2a43e78c17 [flang] Improvements to name resolution in data statements
Handle variables in data statements differently from implied dos:
If a variable is first mentioned in a data statement, it is implicitly
declared in the current scope (and subsequent type declarations only
confirm the type).
In the implied do case, the only variables that can be implicitly
declared are the iteration variables. They must be created in the new
ImpliedDos scope. There must be one such scope for each data-stmt-object
because the variable name can be reused.

Resolve references to named constants, e.g. in complex-literal-constant
and data-stmt-value. This requires changing the handling of
named-constant-def as that is a definition, not a reference.

Original-commit: flang-compiler/f18@9952b56af0
Reviewed-on: https://github.com/flang-compiler/f18/pull/277
Tree-same-pre-rewrite: false
2019-02-06 17:18:02 -08:00
..
evaluate [flang] More value semantics in Constant<> and GetScalarConstantValue 2019-02-01 13:37:49 -08:00
semantics [flang] Improvements to name resolution in data statements 2019-02-06 17:18:02 -08:00
CMakeLists.txt [flang] Add name resolution tests 2018-06-15 14:54:34 -07:00