https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125998

--- Comment #1 from federico <federico.perini at gmail dot com> ---
When a non-contiguous array expression such as TRANSPOSE(a) is passed as the
actual argument to a dummy declared with the CONTIGUOUS attribute, seems to
carry the pre-transpose extents: the dummy's shape/size come back swapped (the
shape of a, not of transpose(a)).

Removing CONTIGUOUS from the dummy makes the result correct, so the bug is in
the contiguous copy-in path.

Other contiguous + transpose bugs are reported in bugzilla for very old
versions. 
Last working version: 13.2.0. All versions from 13.3.0 up seems to have this
issue. 

Test live at: https://godbolt.org/z/98GKso985

Thank you,
Federico

Reply via email to