AaronBallman wrote:

> We need code that compiles in both GCC and Clang without modifying existing 
> source—not some separate, incompatible alternative from Clang.

To be clear, this is not some separate, incompatible thing. The C standards 
committee produced a technical specification describing a feature our users 
were quite happy for us to support. GCC also has an in-progress implementation 
of the same functionality. This is new feature work just like any other, the 
main difference being that we're not obligated to implement it for conformance 
reasons.

Further, `_Defer` and nested functions are different features serving different 
needs, so it's not clear why you're bringing them up in this context. Nested 
functions are something the Clang community has considered in the past and we 
do not have plans to support at this time. However, WG14 is considering 
proposals for functionality in this space, including nested functions from GCC, 
so it's possible the committee will standardize something in that space at some 
point. But right now, nested functions are actually the separate, incompatible 
thing -- they're not standard C and so they're not supported in most C 
compilers.

https://github.com/llvm/llvm-project/pull/162848
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to