aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorpeter klausler <pklausler@nvidia.com>2021-01-29 13:34:22 -0800
committerpeter klausler <pklausler@nvidia.com>2021-01-29 15:30:06 -0800
commitebe74d9592d097501f376c2086e58d35aa318896 (patch)
treec3fb56afdb65450839c9fdcc84925257f86ddab0 /llvm/lib/Support/VirtualFileSystem.cpp
parent282aca10aeb03bdaef0a8d4f3faa4c2ff236e527 (diff)
downloadllvm-ebe74d9592d097501f376c2086e58d35aa318896.zip
llvm-ebe74d9592d097501f376c2086e58d35aa318896.tar.gz
llvm-ebe74d9592d097501f376c2086e58d35aa318896.tar.bz2
[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
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions