void fn() { goto L; int x = 1; L: return; } Error: `goto` skips declaration of variable `test.fn.x` at test.c(4) could this be allowed in importC? other compilers accept it when compiling C but not C++
@WalterBright created dlang/dmd pull request #13913 "fix Issue 22933 - importC: goto skips declaration of variable" fixing this issue: - fix Issue 22933 - importC: goto skips declaration of variable https://github.com/dlang/dmd/pull/13913
dlang/dmd pull request #13913 "fix Issue 22933 - importC: goto skips declaration of variable" was merged into master: - cd51b32e3c452e3a366430ed22ff7e006483dc9e by Walter Bright: fix Issue 22933 - importC: goto skips declaration of variable https://github.com/dlang/dmd/pull/13913