You can disable this behaviour in MSVC by giving the compiler flag /Zc:gotoScope-, you can also disable the warnings that are generated when jumping over trivial variable initialisation with the compiler flag /wd4533.
Zc:gotoScope-
/wd4533
Relevant links: