[clang] [clang] Inject IndirectFieldDecl even if name conflicts. (PR #153140)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 14 06:19:46 PDT 2025


================
@@ -74,6 +74,7 @@ AST Dumping Potentially Breaking Changes
 
 Clang Frontend Potentially Breaking Changes
 -------------------------------------------
+- Members of anonymous unions/structs are now injected as ``IndirectFieldDecl`` into the enclosing record even if their names conflict with other names in the scope. These ``IndirectFieldDecl`` are marked invalid.
----------------
erichkeane wrote:

This probably needs 80 character word-wrap?  Though I know format doesn't really do stuff in rst files.

https://github.com/llvm/llvm-project/pull/153140


More information about the cfe-commits mailing list