Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Garbage in VS2008/VS2010 watch window for allocated scalar substrings

David_Kinniburgh
初學者
1,300 檢視
[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
0 積分
6 回應
Wendy_Doerner__Intel
傑出貢獻者 I
1,299 檢視
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.

------

Wendy

Attaching or including files in a post

Wendy_Doerner__Intel
傑出貢獻者 I
1,300 檢視
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


SergeyKostrov
傑出貢獻者 II
1,300 檢視
Is it an MBCS / UNICODE related problem?
Wendy_Doerner__Intel
傑出貢獻者 I
1,300 檢視
No just related to how the strings where specified.

------

Wendy

Attaching or including files in a post

David_Kinniburgh
初學者
1,300 檢視
This does not appear to have been fixed in 2013.0.089.
Wendy_Doerner__Intel
傑出貢獻者 I
1,300 檢視
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
回覆