hstk30-hw wrote:

C99 not allow empty struct.
6.7.2.1 p7

> If the struct-declaration-list contains no named members, the behavior is 
> undefined

GNU extersion is allow. https://godbolt.org/z/Mx7s9Eh3G

IMO, It's just a defensive code to guard against division by zero.

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

Reply via email to