llvm-project/flang/test
peter klausler ebe74d9592 [flang] Support disabled alternative PARAMETER statement
Legacy Fortran implementations support an alternative form of the
PARAMETER statement; it differs syntactically from the standard's
PARAMETER statement by lacking parentheses, and semantically by
using the type and shape of the initialization expression to define
the attributes of the named constant.  (GNU Fortran gets that part
wrong; Intel Fortran and nvfortran have full support.)

This patch disables the old style PARAMETER statement by default, as
it is syntactically ambiguous with conforming assignment statements;
adds a new "-falternative-parameter-statement" option to enable it;
and implements it correctly when enabled.

Fixes https://bugs.llvm.org/show_bug.cgi?id=48774, in which a user
tripped over the syntactic ambiguity.

Differential Revision: https://reviews.llvm.org/D95697
2021-01-29 15:30:06 -08:00
..
Driver [flang][driver] Rename driver tests (nfc) 2021-01-07 14:05:48 +00:00
Evaluate [flang] Fix problems with constant arrays with lower bounds that are not 1 2021-01-29 08:05:10 -08:00
Fir [flang] Fix FIR test failures 2020-11-17 12:25:15 -08:00
Flang-Driver [flang] Search for #include "file" in right directory (take 2) 2021-01-27 15:41:29 -08:00
Frontend [flang][driver] Report prescanning diags during syntax-only parsing 2021-01-27 10:27:21 +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][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
Semantics [flang] Support disabled alternative PARAMETER statement 2021-01-29 15:30:06 -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][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
lit.site.cfg.py.in [flang][driver] Add the new flang compiler and frontend drivers 2020-09-11 10:55:54 +01:00