Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

issue with assumed length + assumed shape character array declaration

$
0
0

It is unclear to me why the following declaration is causing a run-time error when compiled in ifort. This source does run as expected without error when compiled using GNU GCC version 4.4.3:

subroutine splitString(stringArray, stringCSV, separator)
        implicit none
        character(len=*), dimension(:), intent(inout) :: stringArray
        character(len=*), intent(in) :: stringCSV
        character(len=*), intent(in), optional :: separator
        ...
end subroutine

The run-time error is:

forrtl: severe (408): fort: (6): Non-unit stride for dimension 1 of assumed-shape array STRINGARRAY in routine SPLITSTRING and fe_asha_1ds1 specified

my ifort compiler is:

Intel(R) Visual Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 12.0.4.196 Build 20110427

 


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>