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

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 26 14:51:33 PDT 2023


rsmith added a comment.

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.


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