Heh, this seemed like a straight forward question. Either it's Yd7, Yd1 or Yd5 right? Well, I found that as I went to explain it with voltage vectors and individual phase transformers, I quickly lost track of where my "zero" reference is. Of course, these "Yd#" abbreviations only work when you have a reference. So to make things completely clear, I turned to good old, reliable simulation. The results are quite as I expected, but much less ambiguous to explain:
See the attached image. The simulation consists of a 3-phase voltage source scaled to reach 100V peak and oscillate once every 12 seconds. The 12 seconds allows me to put units on the # in Yd# - in this simulation there are 12 "seconds" to a full rotation. The top transformer is a normal Yd5, and the load weakly references the secondary symmetrically about the 0V reference.
The top plot shows primary voltages A and B for the top transformer. Phase A's rising zero crossing is at 0 seconds and phase B follows it at 4 seconds.
The next plot shows secondary voltages a and b for the top transformer. Phase a crosses at 5 seconds and phase b follows it 4 seconds later. No surprises there, normal Yd5 behaviour.
The third plot shows the voltages at the primary terminals of the bottom transformer. In this case phases A and C have been swapped, while everything else remains the same. So phase A now crosses at 8 seconds and phase B crosses 4 seconds earlier since the phase rotation is backwards.
The final plot shows the secondary voltages of the bottom transformer. Phase a now crosses at 3 seconds, which is 7 seconds after phase A (or equivalently, 5 seconds before, but we'll stick to the positive convention for vector groups). Phase b crosses 4 seconds before phase a since the secondary reflects the phase rotation of the primary.
In summary, crossing A & C on the primary of a Yd5 will, provided the terminals marked A, B, C and a, b, c do not change, perform as if the transformer was a Yd7 and the phase rotation will be backwards. This makes sense once you study the voltage vectors across individual transformer windings, but I found it much more convincing in simulation.