llvm-project/flang/test
Peter Steinfeld 4e90cad6a6 [flang] Handle undeclared names in EQUIVALENCE statements
Names in EQUIVALENCE statements are only allowed to indicate local
objects as per 19.5.1.4, paragraph 2, item (10).  Thus, a name appearing
in an EQUIVALENCE statement with no corresponding declaration in the
same scope is an implicit declaration of the name.  If that scope
contains an IMPLICIT NONE, it's an error.

I implemented this by adding a state variable to ScopeHandler to
indicate if we're resolving the names in an EQUIVALENCE statement and
then checked this state when resolving names.  I also added a test to
the existing tests for EQUIVALENCE statements.

Differential Revision: https://reviews.llvm.org/D93345
2020-12-16 11:04:27 -08:00
..
Driver [flang] Version information in flang/f18 2020-09-01 19:05:43 +01:00
Evaluate [flang] Fix crash in folding (#48437) 2020-12-16 07:55:44 -08:00
Fir [flang] Fix FIR test failures 2020-11-17 12:25:15 -08:00
Flang-Driver [flang][driver] Make sure that `-###` is marked as supported (NFC) 2020-11-11 13:12:51 +00:00
Frontend [Flang][Driver] Add PrintPreprocessedInput FrontendAction (`flang-new -E`) 2020-11-02 14:03:35 +00:00
Lower [flang][openacc] Handle optional end directive in combined construct 2020-08-13 14:05:00 -04:00
NonGtestUnit [flang] Run non-gtest unit tests with lit. 2020-07-24 14:49:39 +01:00
Parser [flang]Add Parser Support for Allocate Directive 2020-12-10 16:21:19 +00:00
Preprocessing [flang] Rework preprocessing of stringification 2020-09-18 10:45:57 -07:00
Semantics [flang] Handle undeclared names in EQUIVALENCE statements 2020-12-16 11:04:27 -08:00
Unit [flang] unit test support for out-of-tree and in-tree using google tests framework 2020-06-15 22:09:56 +05:30
CMakeLists.txt [flang][driver] Add the new flang compiler and frontend drivers 2020-09-11 10:55:54 +01:00
lit.cfg.py [flang][tests] Fix Python bug in the lit config 2020-10-24 17:04:25 +01:00
lit.site.cfg.py.in [flang][driver] Add the new flang compiler and frontend drivers 2020-09-11 10:55:54 +01:00