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

-assume realloc_lhs

Thierry_C_
Beginner
390 Views

Hello,

This seems a bad behaviour of the ifort compiler under -assume realloc_lhs

>ifort test.f90 -assume realloc_lhs
>./a.out
V(6)=[1,2,3,4,5,6]
 shape(transpose(reshape(v,[3,2])))=
           2           3
 C=transpose(reshape(v,[3,2]))
 shape(C)=
           3           2
 C=
           1           4          18           2 5           0

this was obtained with:

Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 13.1.3.192 Build 20130607

Thanks,

Thierry.

0 Kudos
1 Reply
Thierry_C_
Beginner
390 Views

Is there a better place to report such bug to Intel? unless nobody cares...

Thierry.

0 Kudos
Reply