llvm-project
af96ed6b - [clang] Inject IndirectFieldDecl even if name conflicts. (#153140)

Commit
28 days ago
[clang] Inject IndirectFieldDecl even if name conflicts. (#153140) This modifies InjectAnonymousStructOrUnionMembers to inject an IndirectFieldDecl and mark it invalid even if its name conflicts with another name in the scope. This resolves a crash on a further diagnostic diag::err_multiple_mem_union_initialization which via findDefaultInitializer relies on these declarations being present. Fixes #149985
Author
Parents
Loading