alexey-bataev 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`.
Do not use ПСС as kind of reference compiler, it is not. If `int i = {}` is
allowed by the C/C++, it should be enable for OpenMP too, I do not remember
OpenMP standard to not allow this form
https://github.com/llvm/llvm-project/pull/233248
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits