T O P I C R E V I E W |
jfreeman |
Posted - Nov 17 2006 : 2:28:38 PM In the following example, if you rename "count" in s1, it renames "count" in s2 as well (and s2's references to count).
struct s1 { struct { int count; } embeddedStruct; };
struct s2 { struct { int count; } embeddedStructXXX; };
void f() { s1 x1; s2 x2; x1.embeddedStruct.count++; x2.embeddedStructXXX.count++; }
This is very important to me as I have a large body of existing code to refactor that has this pattern in many places. Should I file a bug report?
build 1540; VS2005 C++ |
5 L A T E S T R E P L I E S (Newest First) |
support |
Posted - Nov 26 2006 : 1:37:04 PM Typo. Good catch.
Cases 3690 and 3695 are fixed in build 1541. |
jpizzi |
Posted - Nov 25 2006 : 5:09:38 PM quote: Case 3695 is fixed in build 1541.
Umm. Was this posted in the wrong thread, or a typo? |
support |
Posted - Nov 24 2006 : 9:23:19 PM Case 3695 is fixed in build 1541. |
feline |
Posted - Nov 17 2006 : 4:19:49 PM I am seeing the same effect here. Thank you for the clear description. Rename calls Find References to get the list of references to rename, so if you find a bug in Find References then it will also effect rename.
case=3690 |
jfreeman |
Posted - Nov 17 2006 : 2:49:35 PM I just noticed Find References on this symbol fails in the same way -- it finds references that are to the variable of the same name in the other nested struct. |