when I put the cursor on str on line 3, then click the "go" button to navigate to the definition, the cursor will jump to line 1 not line 2; The same thing will happen to following code: "sth"; string str; str.c_str();
We try your example with 1437 inside VS.NET 2003 and Goto leaves the caret at line 2.
Can you reproduce the problem in a small file? Near the top of your current file? (Maybe something in the current file gets the VA X line count off by one.)
the problem here is that VA has no way of knowing absolutely if the comment applies to the variable or not, so it is making its best guess. can you not change the case of the words in the comment?
using support's example if i change the innermost comment to read // Str then goto now goes to the definition of the variable, since the comment no longer matches the variable.