akash-manna-sky wrote:
> Why do we want to reject this, why not fix handling of this kind of
> initializers?
I considered `{}` as outside the canonical form, since the spec wants an
expression there and GCC rejects every braced spelling. It is now handled as
the value-initialized zero of the counter type, so `int i = {}` and `i += {}`
are analysed like `0`.
https://github.com/llvm/llvm-project/pull/233248
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits