Fznamznon added a comment.

In D157879#4655321 <https://reviews.llvm.org/D157879#4655321>, @rsmith wrote:

> This change has introduced a false positive for anonymous union members:
>
>   struct A {
>       int m;
>       union { int n = 0; };
>   };
>   
>   A a = A{.m = 0};
>
> now produces a false positive warning saying that the anonymous union member 
> in `A` is uninitialized.

Thanks! I've created https://github.com/llvm/llvm-project/issues/70444 and will 
figure something to fix this asap.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157879/new/

https://reviews.llvm.org/D157879

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D157879: ... Richard Smith - zygoloid via Phabricator via cfe-commits
    • [PATCH] D157... Mariya Podchishchaeva via Phabricator via cfe-commits

Reply via email to