[cxx] C++ does not allow goto around initialization. (#10132)