[flang-commits] [flang] [flang] Improve error message on bad complex literal. (PR #124331)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Fri Jan 24 12:25:40 PST 2025


================
@@ -30,4 +30,6 @@ subroutine s()
   complex :: cvar11 = (cconst, 1.0)
   !ERROR: operands must be INTEGER, UNSIGNED, REAL, or BOZ
   complex :: cvar12 = (lconst, 1.0)
+  !ERROR: operands cannot both be BOZ
+  complex :: cvar13 = (z'3f700000', z'00000000')
----------------
eugeneepshteyn wrote:

Is there already a test for creating COMPLEX from one BOZ component?

https://github.com/llvm/llvm-project/pull/124331


More information about the flang-commits mailing list