kelbon wrote:

> How would you deal with the issue of infinite loops? The following program:
> 
> ```c++
> #define2 boom(X) boom(X)
> 
> boom(0)
> ```
> 
> Will continue to infinitely(?) consume memory until it is killed, either by 
> the user or due to running out of memory on the system

As fo other similar things like templates/inheriting/includes must be recursion 
depth limit, but in this case "MacroInfo" required to be 40 bytes(and code dont 
says for what, but i expect some runtime sized structs etc), so now i think how 
to do it better

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

Reply via email to