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

Garbage in VS2008/VS2010 watch window for allocated scalar substrings

David_Kinniburgh
Beginner
610 Views
[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 Kudos
6 Replies
Wendy_Doerner__Intel
Valued Contributor I
609 Views
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

0 Kudos
Wendy_Doerner__Intel
Valued Contributor I
610 Views
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


0 Kudos
SergeyKostrov
Valued Contributor II
610 Views
Is it an MBCS / UNICODE related problem?
0 Kudos
Wendy_Doerner__Intel
Valued Contributor I
610 Views
No just related to how the strings where specified.

------

Wendy

Attaching or including files in a post

0 Kudos
David_Kinniburgh
Beginner
610 Views
This does not appear to have been fixed in 2013.0.089.
0 Kudos
Wendy_Doerner__Intel
Valued Contributor I
610 Views
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
0 Kudos
Reply