[Clang][Windows] Accepts invalid `[] int x;`
[] int x;
This code is invalid but accepted by Clang on Windows, reproducible with the main branch. See https://compiler-explorer.com/z/s65rv9Pcf. (clang-cl 18.1 only)
Could you please try 21 or main branch? Only most recent release is maintained.
@llvm/issue-subscribers-clang-frontend
Author: None (MagentaTreehouse)
Could you please try 21 or
mainbranch? Only most recent release is maintained.
@EugeneZelenko Yes, this is reproducible with the main branch as described in the OP. It is Compiler Explorer that provides 18.1 only for clang-cl.
Also reproducible with -fms-extensions and usual clang driver on main: https://compiler-explorer.com/z/xcs6axovW
Goes all the way back to after clang-2.8: https://compiler-explorer.com/z/6sceKEzTM
CC @AaronBallman