https://github.com/Sirraide commented:
I’m not sure it makes sense to put this into a new diagnostic group because I don’t think anyone is going to enable this. It might make more sense to put this in `-pedantic`, but also GCC doesn’t warn on this _at all_ (even w/ `-pedantic`). I also find it rather strange that the standard even requires a compound-statement here; that just seems like an arbitrary restriction. I wonder if we should file either a core issue or a GCC bug for this? CC @AaronBallman, @cor3ntin for opinions https://github.com/llvm/llvm-project/pull/209229 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
