| Issue |
124201
|
| Summary |
[Flang] Confusing error message on BOZ constant to complex type assignment.
|
| Labels |
flang:frontend
|
| Assignees |
|
| Reporter |
DanielCChen
|
Consider the following code:
```
complex(4) :: z4
z4= (z'00000000', z'80000000')
end
```
Flang currently issues an error as
```
error: Semantic errors in t.f
./t.f:2:5: error: operands must be INTEGER, UNSIGNED, REAL, or BOZ
z4= (z'00000000', z'80000000')
^^^^^^^^^^^^^^^^^^^^^^^^^^
```
This is confusing as the operands is indeed BOZ.
Also, Flang has the extension to allow BOZ literal to real or integer. This seems a reasonable case that should be allowed.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs