[all-commits] [llvm/llvm-project] 701fe5: [Clang] Fix an inadvertent overwrite of sub-initia...
Younan Zhang via All-commits
all-commits at lists.llvm.org
Tue May 20 19:02:55 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 701fe51fd667904d160fb46b6ceba09006fe8291
https://github.com/llvm/llvm-project/commit/701fe51fd667904d160fb46b6ceba09006fe8291
Author: Younan Zhang <zyn7109 at gmail.com>
Date: 2025-05-21 (Wed, 21 May 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaInit.cpp
M clang/test/SemaTemplate/deduction-guide.cpp
Log Message:
-----------
[Clang] Fix an inadvertent overwrite of sub-initializers (#140714)
When using InitChecker with VerifyOnly, we create a new designated
initializer to handle anonymous fields. However in the last call to
CheckDesignatedInitializer, the subinitializer isn't properly preserved
but it gets overwritten by the cloned one. Which causes the initializer
to reference the dependent field, breaking assumptions when we
initialize the instantiated specialization.
Fixes https://github.com/llvm/llvm-project/issues/67173
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list