[PATCH] D157879: [clang] Report missing designated initializers in C++

Mariya Podchishchaeva via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 27 05:00:03 PDT 2023


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



More information about the cfe-commits mailing list