Import of field initializers with circular reference was not working,
this is fixed now.
Fixes issue #63120
Paths
| Differential D155574
[clang][ASTImporter] Fix import of recursive field initializer. ClosedPublic Authored by balazske on Jul 18 2023, 3:29 AM.
Details Summary Import of field initializers with circular reference was not working, Fixes issue #63120
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 18 2023, 4:13 AM danix800 added inline comments.
Closed by commit rGf4438385d4d9: [clang][ASTImporter] Fix import of recursive field initializer. (authored by balazske). · Explain WhyJul 27 2023, 12:35 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 544632 clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterTest.cpp
|
Initializer could indirectly depends on this field and set the initializer while importing.
setInClassInitializer() asserts that initializer should not be set more than once: