This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, fortran] Fix PR 44693


Thomas,

The standard says:

> DIM shall be an integer scalar with a value in the range 1 <= DIM <= n, 
> where n is the rank of ARRAY.

So I don't see how

> real a(10:10)
>
> then "sum(a,dim=2)" is correct, and the sum has rank 1.

can be valid.

Dominique


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]