There seems to be a problem using character strings with LEN exceeding 32768. Consider the following program as an example.
PROGRAM p IMPLICIT NONE INTEGER, PARAMETER :: lc=32769 CHARACTER(LEN=lc) :: c ! c=REPEAT(' ',lc) ! END PROGRAM p
This program crashes.
While there are obvious work-arounds for the above, the reason I want to use long character strings is to find the number of arguments on the first line of a formatted input text file. The way I do this is to read in the first line as a long character, and then see how many arguments I can read from this line. Perhaps there is a better way to do this.