void func() { int a = 0; a++; goto label; label: int b = 0; return; }
这样的代码是有问题的,因为C++编译规则中,不允许goto后面还有新的变量声明。
goto