[cling] Unload all redecls of ClassTemplateDecl#19394
[cling] Unload all redecls of ClassTemplateDecl#19394devajithvs merged 2 commits intoroot-project:masterfrom
Conversation
vgvassilev
left a comment
There was a problem hiding this comment.
Any chance for a test case?
hahnjo
left a comment
There was a problem hiding this comment.
LGTM. In my understanding, this currently leaves the AST in a partially invalid state. I'm not sure if this is easy to test at the moment, but will be exercised by the upgrade.
|
I've been looking into adding a test case, but it's a bit difficult to test this within the ROOT/Cling testing scope. We could add a simplified test similar to |
|
Ok, any chance in remembering to add the test when that lands. I presume the test case is unloading the test case introduced by the commit you mentioned. |
The test with full commit for reference: 08e304b I was using a simplified version of this test for debugging. But the above test should cover the case when unloading after the upgrade.
|
|
So just to summarize: |
|
|
f97ec6c to
3e3c885
Compare
|
Added a simplified test! |
When unloading a ClassTemplateDecl, no redeclarations were handled Additional redecls may still be part of the chain leading to duplicates and broken redecl chains that cause assertion failures like: "Passed first decl twice, invalid redecl chain!" Fixes assertion failures post llvm commit: llvm/llvm-project@17d8ed7 for the test `roottest-root-meta-cmsUnload-make`
3e3c885 to
0bb874b
Compare
Test Results 21 files 21 suites 3d 13h 12m 34s ⏱️ Results for commit 0bb874b. ♻️ This comment has been updated with latest results. |
|
I was imagining a cling test but that also should do. |
When unloading a ClassTemplateDecl, no redeclarations were handled.
Additional redecls may still be part of the chain leading to duplicates
and broken redecl chains that cause assertion failures like:
"Passed first decl twice, invalid redecl chain!"
Fixes assertion failures post llvm commit:
llvm/llvm-project@17d8ed7
for the test
roottest-root-meta-cmsUnload-makeThis Pull request:
Changes or fixes:
Checklist:
This PR fixes #
The failing test
roottest-root-meta-cmsUnload-makein #19242