I have a program that I am working on in two different places on my computer. The programs are nearly identical. Here is excerpt:
INTEGER, PARAMETER :: LENGTH = 5
CHARACTER(20) :: PICKLIST(LENGTH)
... define PICKLIST(1) through PICKLIST(5)...
CALL EDCELL (IROW, ICOL, ...PICKLIST...RETURNCODE)
SUBROUTINE PICKLIST (IROW, ICOL, ...PICKLIST...RETURNCODE)
CHARACTER(*) :: PICKLIST(:)
PRINT *, PICKLIST
In the first location this program runs fine. In the second location it compiles and links without error, but gives a runtime error "Program execption-stack overflow" on the PRINT *, PICKLIST line. In the debugger watchlist, PICKLIST is identified as "Undefined pointer/array".
I cannot see any differences in the codes or the directory structure that could cause these differences. In both cases I am running 2011.10.325. I believe that all of the compiler and link switches are standard. Can you suggest where or how to look for the cause?