I have code similar to the following if (x) { auto ptr = ; } else { auto ptr = ; } Visual D shows both ptr's but they both have the same value. Renaming one ends up showing different values.