[clang] [clang] Avoid doing C++20 aggregate init during copy-initialization (PR #131320)

via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 14 07:22:28 PDT 2025


offsetof wrote:

> I don't think this resolves the original issue.
> Part of the problem is that we are missing a diagnostic saying the implicit constructor is deleted (and why).

Fair enough; I linked that issue because the nonsensical diagnostic mentioned there ("no viable conversion from `S` to `int`") is a side-effect of the bug fixed by this PR. With the change applied, we get the usual "no matching constructor" with a list of candidates. But if we want something else, then the issue should remain open.


https://github.com/llvm/llvm-project/pull/131320


More information about the cfe-commits mailing list