When attempting to look at the value of a variable length character array (not sure if this is the correct name) in the debugger all I get is “Undefined Pointer/Array” – even after I’ve assigned to it. The value held is correct; it is purely the value in the debugger which is not showing. This only seems to occur for variables local to a routine; I can see the values if they are declared as a module variable or by adding the save attribute in the routine declaration.
I’m using VS2012 and the latest compiler update – any suggestions?
I’m declaring within a subroutine like this:
CHARACTER(LEN=:), ALLOCATABLE :: tmp1 ! Undefined Pointer/Array in debugger CHARACTER(LEN=:), ALLOCATABLE, SAVE :: tmp2 ! Works fine