[flang] Change error to portability warning
authorPeter Klausler <pklausler@nvidia.com>
Wed, 2 Nov 2022 22:32:17 +0000 (15:32 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Fri, 2 Dec 2022 21:45:41 +0000 (13:45 -0800)
commit56b7db9e07f6d792a665a7731f91d5f81be85547
tree88095a62e748df041f9e3cf31d18036ad1ae5159
parent1294fa697176c244e92e72c0b01fd3b5e3a06477
[flang] Change error to portability warning

The standard does *not* require that a real or imaginary part of a complex
literal constant be a scalar if it is a named constant.  Downgrade a
recently installed check to a portability warning, and document it.

Differential Revision: https://reviews.llvm.org/D139046
flang/docs/Extensions.md
flang/include/flang/Semantics/expression.h
flang/lib/Semantics/expression.cpp
flang/test/Semantics/expr-errors05.f90