aeubanks wrote:

this causes a `-Wmicrosoft-goto` warning on
```
$ cat /tmp/a.c
void f() {
        goto l;
        int i = 0;
l:
}
$ bin/clang-cl /c /tmp/a.c
...
/tmp/a.c(2,2): warning: jump from this goto statement to its label is a 
Microsoft extension [-Wmicrosoft-goto]
    2 |         goto l;
      |         ^
/tmp/a.c(3,6): note: jump bypasses variable initialization
    3 |         int i = 0;
      |             ^
```
where there was none previously. is this intended?

https://github.com/llvm/llvm-project/pull/138009
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to