[bash]integer :: k character(:), allocatable :: str k = 15 str = "Now is the time to go the party" print *, "text = ", str(1:k) [/bash]That works and prints as expected, but I get garbage in the Watch window when I attempt to look at substrings like str(1:k) or str(1:15).
str(:) and str(1:) work fine.
Is this a known bug?
...fcompxe_2011.7.258
連結已複製
6 回應
David,
I have reproduced the bug you are seeing with allocatable arrays and have reported it to engineering as: DPD200177119. I will update when we have a compiler that resolves it or if it was already a known problem.
I have reproduced the bug you are seeing with allocatable arrays and have reported it to engineering as: DPD200177119. I will update when we have a compiler that resolves it or if it was already a known problem.
------
Wendy
Found out from engineering this is a known problem which will be fixed in the next major release of our compiler due out next year.
------
Wendy
Attaching or including files in a post
No just related to how the strings where specified.
------
Wendy
Engineering has confirmed this is fixed only in Microsoft VS 2012 in the first relase of the 13.0 compiler just released. Will update this thread when it isavailable in 2008 and 2010 in a future update.
Wendy Doerner
Intel Developer Support