bwendling wrote: > The main thing I’m concerned about here is that I feel like there ought to be > a better way of doing this than checking for and disallowing it in every > place where we can have a subexpression in C.
Yeah, but we don't have such a method, partially due to the languages Clang supports. How is this any different from the vast array of other features that are checked in Sema? > Also, if we’re doing it this way, then the check should definitely be > factored out into a function in `Sema`. Okay. https://github.com/llvm/llvm-project/pull/116719 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits