You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
A complex literal constant can have one BOZ component, since the
type and value of the literal can be determined by converting the
BOZ value to the type of the other component. But a complex literal
constant with two BOZ components doesn't have a well-defined type.
The error message was confusing in the case; emit a better one.
Fixesllvm#124201.
…4331)
A complex literal constant can have one BOZ component, since the type
and value of the literal can be determined by converting the BOZ value
to the type of the other component. But a complex literal constant with
two BOZ components doesn't have a well-defined type. The error message
was confusing in the case; emit a better one.
Fixesllvm/llvm-project#124201.
Consider the following code:
Flang currently issues an error as
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.
The text was updated successfully, but these errors were encountered: