Files
clang-p2996/clang/lib/Sema/SemaInit.cpp
Shafik Yaghmour c9ef33e1d8 [Clang] Fix crash when emitting diagnostic for out of order designated initializers in C++
In C++ we are not allowed to use designated initializers to initialize fields
out of order. In some cases when diagnosing this we are crashing because we are
not indexing correctly and therefore going out of bounds.

This fixes: https://github.com/llvm/llvm-project/issues/63605

Differential Revision: https://reviews.llvm.org/D154675
2023-07-14 15:57:51 -07:00

431 KiB