erichkeane wrote:

> It turns out we weren't handling one case: the value-initialization of a 
> field inside a struct.
> 
> I'm not sure why this falls under `IK_Direct` rather than `IK_Value` in 
> Clang, but it seems to work.

Looks like (according to item 6 here) 
https://en.cppreference.com/w/cpp/language/direct_initialization

That member init is always 'direct' initialization.  


https://github.com/llvm/llvm-project/pull/124329
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to