Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29253 Discussions

shape restrictions on assumed shape arguments

zp3
Beginner
783 Views

Hi,

wan't to ask if it's permitted to define certain restrictions on the shape of assumed shape arrays?

For example something like:

integer(GST_IK), intent(in) :: lm(2,:)

Thanks for advice

 

 

0 Kudos
1 Solution
Steven_L_Intel1
Employee
783 Views

I don't think this is legal, though Intel Fortran accepts it - a bug in my opinion. Even if it were accepted, it would not be a "restriction" but rather a sort of subset.

View solution in original post

0 Kudos
3 Replies
Steven_L_Intel1
Employee
784 Views

I don't think this is legal, though Intel Fortran accepts it - a bug in my opinion. Even if it were accepted, it would not be a "restriction" but rather a sort of subset.

0 Kudos
Steven_L_Intel1
Employee
783 Views

Thanks for adding that. I'll make sure the developers know.

0 Kudos
Steven_L_Intel1
Employee
783 Views

This problem has been fixed. I expect the fix to appear in update 1 to the 16.0 compiler.

0 Kudos
Reply