[PATCH] D157879: [clang] Report missing designated initializers in C++
Mariya Podchishchaeva via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 14 07:50:03 PDT 2023
Fznamznon created this revision.
Herald added a project: All.
Fznamznon requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Prior to this change clang didn't emit missing-field-initializers
warning for designated initializers. The comments say that it is done to
match gcc behavior. However, gcc behaves so only for C. For C++ warnings
are emitted.
Fixes https://github.com/llvm/llvm-project/issues/56628
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157879
Files:
clang/lib/Sema/SemaInit.cpp
clang/test/SemaCXX/cxx2a-initializer-aggregates.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157879.549936.patch
Type: text/x-patch
Size: 5753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230814/6fa29378/attachment-0001.bin>
More information about the cfe-commits
mailing list