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
Failure output is not yet implemented IO input item with vector subscripts
integer a(3), b(3)
a = [3,2,1]
b = [4,5,6]
print*, 'B1: ', b(a) ! conformant; implemented; may be inefficient
read*, b(a) ! conformant; not yet implemented
print*, 'B2: ', b
print*, 'A1: ', a(a) ! conformant
read*, a(a) ! nonconformant (but "allowed")
print*, 'A2: ', a
end
Array output with a vector subscript is implemented, but may be doing an unnecessary copy.
Array input with a vector subscript is not implemented; copying in this case would be incorrect.
F18 12.6.3p7 point 1 says: If an array appears as an input/output list item, it is treated as if the elements, if any, were specified in array element order (9.5.3.2). However, no element of that array shall affect the value of any expression in the input-item, nor shall any element appear more than once in a given input-item.
F18 9.5.3.1p2 says: The value of a subscript in an array element shall be within the bounds for its dimension.
These are program requirements, not constraints. So although reading or writing a(a) may be nonconformant, compilers generally "allow" such cases with varying results. These requirements may be a nonissue for implementation. Test ch9egs.f90 has a nonconformant read.
The text was updated successfully, but these errors were encountered:
schweitzpgi
added
the
Lowering
Issue with lowering, conversion of parse trees into the executable representation FIR
label
Jul 30, 2021
See test nag_f95_iso1539/ch9egs.f90
Failure output is
not yet implemented IO input item with vector subscripts
Array output with a vector subscript is implemented, but may be doing an unnecessary copy.
Array input with a vector subscript is not implemented; copying in this case would be incorrect.
F18 12.6.3p7 point 1 says: If an array appears as an input/output list item, it is treated as if the elements, if any, were specified in array element order (9.5.3.2). However, no element of that array shall affect the value of any expression in the input-item, nor shall any element appear more than once in a given input-item.
F18 9.5.3.1p2 says: The value of a subscript in an array element shall be within the bounds for its dimension.
These are program requirements, not constraints. So although reading or writing
a(a)
may be nonconformant, compilers generally "allow" such cases with varying results. These requirements may be a nonissue for implementation. Test ch9egs.f90 has a nonconformant read.The text was updated successfully, but these errors were encountered: