Sirraide wrote:
> Before this PR, all three initializations give the warning. After this PR,
> `d0` and `d1` give the warning but `d2` doesn't.
Yeah, imo those should all warn and if you don’t want a warning you have to
write e.g. `double d3{double(f)}`, which, sure, is rather verbose, but I’d
expect anyone who wants to avoid these sorts of conversions to the point that
they enable this warning to be fine with that (and you can also just write e.g.
`auto d3 = double(f)` if you don’t want to repeat the type).
https://github.com/llvm/llvm-project/pull/159992
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits